diff --git a/result/rvb23u64/01ff37e5024a01f7.S b/result/rvb23u64/01ff37e5024a01f7.S index 20742ec56c0..996ed2fd60e 100644 --- a/result/rvb23u64/01ff37e5024a01f7.S +++ b/result/rvb23u64/01ff37e5024a01f7.S @@ -1,17 +1,17 @@ func0000000000000016: # @func0000000000000016 andi a1, a1, 255 + addi a1, a1, -1 sh3add a0, a1, a0 - addi a0, a0, -8 ret func000000000000001e: # @func000000000000001e andi a1, a1, 255 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func0000000000000006: # @func0000000000000006 andi a1, a1, 255 + addi a1, a1, -1 sh3add a0, a1, a0 - addi a0, a0, -8 ret func000000000000000c: # @func000000000000000c andi a1, a1, 255 @@ -20,16 +20,16 @@ func000000000000000c: # @func000000000000000c ret func000000000000000e: # @func000000000000000e andi a1, a1, 255 + addi a1, a1, 257 sh2add a0, a1, a0 - addi a0, a0, 1028 ret func0000000000000014: # @func0000000000000014 andi a1, a1, 255 + addi a1, a1, -1 sh1add a0, a1, a0 - addi a0, a0, -2 ret func0000000000000004: # @func0000000000000004 andi a1, a1, 255 + addi a1, a1, -1 sh3add a0, a1, a0 - addi a0, a0, -8 ret diff --git a/result/rvb23u64/0343bfc0716193cd.S b/result/rvb23u64/0343bfc0716193cd.S index f649b5d40ba..087eac399f4 100644 --- a/result/rvb23u64/0343bfc0716193cd.S +++ b/result/rvb23u64/0343bfc0716193cd.S @@ -1,5 +1,5 @@ func000000000000003e: # @func000000000000003e add.uw a1, a2, a1 + addi a1, a1, 2 sh2add a0, a1, a0 - addi a0, a0, 8 ret diff --git a/result/rvb23u64/035b4373fc971719.S b/result/rvb23u64/035b4373fc971719.S index 36fda0970a0..879bec1cca2 100644 --- a/result/rvb23u64/035b4373fc971719.S +++ b/result/rvb23u64/035b4373fc971719.S @@ -7,14 +7,14 @@ func000000000000000a: # @func000000000000000a func000000000000007e: # @func000000000000007e add a1, a1, a2 slliw a1, a1, 1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func00000000000000fe: # @func00000000000000fe add a1, a1, a2 slliw a1, a1, 1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func00000000000000de: # @func00000000000000de add a1, a1, a2 diff --git a/result/rvb23u64/03f0615d711ae2df.S b/result/rvb23u64/03f0615d711ae2df.S index 20fa96f9e3b..4d60460aeba 100644 --- a/result/rvb23u64/03f0615d711ae2df.S +++ b/result/rvb23u64/03f0615d711ae2df.S @@ -1,20 +1,26 @@ func00000000000000fa: # @func00000000000000fa add a1, a1, a2 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 108 + addi a0, a0, 100 ret func0000000000000078: # @func0000000000000078 add a1, a1, a2 + addi a1, a1, -1 sh3add a0, a1, a0 - addi a0, a0, 24 + addi a0, a0, 32 ret func000000000000005a: # @func000000000000005a add a1, a1, a2 + addi a1, a1, -1 sh2add a0, a1, a0 + addi a0, a0, 4 ret func000000000000004a: # @func000000000000004a add a1, a1, a2 + addi a1, a1, -1 sh2add a0, a1, a0 + addi a0, a0, 4 ret func000000000000000a: # @func000000000000000a add a1, a1, a2 @@ -23,11 +29,15 @@ func000000000000000a: # @func000000000000000a ret func000000000000005e: # @func000000000000005e add a1, a1, a2 + addi a1, a1, -1 sh2add a0, a1, a0 + addi a0, a0, 4 ret func000000000000004e: # @func000000000000004e add a1, a1, a2 + addi a1, a1, -1 sh2add a0, a1, a0 + addi a0, a0, 4 ret func0000000000000058: # @func0000000000000058 add a1, a1, a2 diff --git a/result/rvb23u64/04ebdfef937f463a.S b/result/rvb23u64/04ebdfef937f463a.S index 7da440f9aa4..55c736ee129 100644 --- a/result/rvb23u64/04ebdfef937f463a.S +++ b/result/rvb23u64/04ebdfef937f463a.S @@ -16,8 +16,9 @@ func0000000000000010: # @func0000000000000010 func0000000000000018: # @func0000000000000018 slli a2, a2, 7 add a1, a1, a2 + addi a0, a0, 1 sh1add a0, a0, a1 - addi a0, a0, 22 + addi a0, a0, 20 ret func0000000000000058: # @func0000000000000058 add a1, a1, a2 diff --git a/result/rvb23u64/05955c104dd8e720.S b/result/rvb23u64/05955c104dd8e720.S index 31c570d56fe..5ed3b9ccc97 100644 --- a/result/rvb23u64/05955c104dd8e720.S +++ b/result/rvb23u64/05955c104dd8e720.S @@ -1,7 +1,8 @@ func000000000000002e: # @func000000000000002e add a1, a1, a2 - sh3add a0, a1, a0 - addi a0, a0, 4 + slli a1, a1, 1 + addi a1, a1, 1 + sh2add a0, a1, a0 ret func000000000000007e: # @func000000000000007e add a1, a1, a2 @@ -21,25 +22,25 @@ func0000000000000004: # @func0000000000000004 ret func000000000000000e: # @func000000000000000e add a1, a1, a2 - slli a1, a1, 4 - add a0, a0, a1 - addi a0, a0, 8 + slli a1, a1, 2 + addi a1, a1, 2 + sh2add a0, a1, a0 ret func000000000000006e: # @func000000000000006e add a1, a1, a2 - slli a1, a1, 4 - add a0, a0, a1 - addi a0, a0, 12 + slli a1, a1, 2 + addi a1, a1, 3 + sh2add a0, a1, a0 ret func0000000000000026: # @func0000000000000026 add a1, a1, a2 - slli a1, a1, 4 - add a0, a0, a1 - addi a0, a0, 4 + slli a1, a1, 2 + addi a1, a1, 1 + sh2add a0, a1, a0 ret func0000000000000066: # @func0000000000000066 add a1, a1, a2 - slli a1, a1, 4 - add a0, a0, a1 - addi a0, a0, 12 + slli a1, a1, 2 + addi a1, a1, 3 + sh2add a0, a1, a0 ret diff --git a/result/rvb23u64/059f1a976c0c0d9f.S b/result/rvb23u64/059f1a976c0c0d9f.S index 6d29a29fcc0..772d28c56ab 100644 --- a/result/rvb23u64/059f1a976c0c0d9f.S +++ b/result/rvb23u64/059f1a976c0c0d9f.S @@ -1,8 +1,8 @@ func000000000000001a: # @func000000000000001a sext.w a1, a1 + addi a1, a1, 255 sh3add a0, a1, a0 - addi a0, a0, 2047 - addi a0, a0, 8 + addi a0, a0, 15 ret func0000000000000008: # @func0000000000000008 addiw a1, a1, 1 diff --git a/result/rvb23u64/05d0db3b553fa62e.S b/result/rvb23u64/05d0db3b553fa62e.S index f43b1652625..23401b5997c 100644 --- a/result/rvb23u64/05d0db3b553fa62e.S +++ b/result/rvb23u64/05d0db3b553fa62e.S @@ -1,19 +1,16 @@ func000000000000000e: # @func000000000000000e - slli a1, a1, 2 - ori a1, a1, 4 - add a0, a0, a1 + ori a1, a1, 1 + sh2add a0, a1, a0 addi a0, a0, -8 ret func0000000000000006: # @func0000000000000006 - slli a1, a1, 2 - ori a1, a1, 4 - add a0, a0, a1 + ori a1, a1, 1 + sh2add a0, a1, a0 addi a0, a0, 8 ret func000000000000001e: # @func000000000000001e - slli a1, a1, 1 - ori a1, a1, 2 - add a0, a0, a1 + ori a1, a1, 1 + sh1add a0, a1, a0 addi a0, a0, 8 ret func000000000000000c: # @func000000000000000c @@ -23,14 +20,12 @@ func000000000000000c: # @func000000000000000c addi a0, a0, -48 ret func0000000000000002: # @func0000000000000002 - slli a1, a1, 2 - addi a1, a1, 4 - ori a1, a1, 252 - add a0, a0, a1 + addi a1, a1, 1 + ori a1, a1, 63 + sh2add a0, a1, a0 ret func0000000000000000: # @func0000000000000000 - slli a1, a1, 3 - addi a1, a1, 8 - ori a1, a1, 8 - add a0, a0, a1 + addi a1, a1, 1 + ori a1, a1, 1 + sh3add a0, a1, a0 ret diff --git a/result/rvb23u64/0613c9810fd25d1b.S b/result/rvb23u64/0613c9810fd25d1b.S index f10b4e559ed..74100e9388c 100644 --- a/result/rvb23u64/0613c9810fd25d1b.S +++ b/result/rvb23u64/0613c9810fd25d1b.S @@ -20,8 +20,8 @@ func0000000000000008: # @func0000000000000008 ret func00000000000000be: # @func00000000000000be slliw a1, a1, 1 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func000000000000009e: # @func000000000000009e slliw a1, a1, 2 @@ -35,8 +35,8 @@ func00000000000000ca: # @func00000000000000ca ret func000000000000003c: # @func000000000000003c slliw a1, a1, 1 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func000000000000009a: # @func000000000000009a slli a1, a1, 1 @@ -46,6 +46,6 @@ func000000000000009a: # @func000000000000009a ret func000000000000007e: # @func000000000000007e slliw a1, a1, 1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret diff --git a/result/rvb23u64/07efbe2f157084f1.S b/result/rvb23u64/07efbe2f157084f1.S index 56effdddd1d..2eba7f7cd9a 100644 --- a/result/rvb23u64/07efbe2f157084f1.S +++ b/result/rvb23u64/07efbe2f157084f1.S @@ -1,23 +1,22 @@ func000000000000001a: # @func000000000000001a - lui a2, 16 - addiw a2, a2, -2 - and a1, a1, a2 - lui a2, 97 + ori a1, a1, 1 + zext.h a1, a1 sh1add a0, a1, a0 - addiw a1, a2, 1986 + lui a1, 97 + addiw a1, a1, 1984 add a0, a0, a1 ret func0000000000000012: # @func0000000000000012 andi a1, a1, 240 + addi a1, a1, 8 sh3add a0, a1, a0 - addi a0, a0, 88 + addi a0, a0, 24 ret func000000000000001e: # @func000000000000001e - lui a2, 16 - addiw a2, a2, -2 - and a1, a1, a2 - lui a2, 97 + ori a1, a1, 1 + zext.h a1, a1 sh1add a0, a1, a0 - addiw a1, a2, 1986 + lui a1, 97 + addiw a1, a1, 1984 add a0, a0, a1 ret diff --git a/result/rvb23u64/0a18cc9d84ff43d2.S b/result/rvb23u64/0a18cc9d84ff43d2.S index 2ea3decdfb8..5d4139f094c 100644 --- a/result/rvb23u64/0a18cc9d84ff43d2.S +++ b/result/rvb23u64/0a18cc9d84ff43d2.S @@ -10,9 +10,8 @@ func0000000000000016: # @func0000000000000016 ret func000000000000003e: # @func000000000000003e sext.w a2, a2 - slli a1, a1, 4 - sh2add a1, a2, a1 - add a0, a0, a1 + sh2add a1, a1, a2 + sh2add a0, a1, a0 ret func000000000000003c: # @func000000000000003c sext.w a2, a2 @@ -22,18 +21,16 @@ func000000000000003c: # @func000000000000003c ret func0000000000000026: # @func0000000000000026 sext.w a2, a2 - slli a1, a1, 4 - sh2add a1, a2, a1 - add a0, a0, a1 + sh2add a1, a1, a2 + sh2add a0, a1, a0 ret func000000000000002e: # @func000000000000002e sext.w a2, a2 - slli a1, a1, 5 - sh2add a1, a2, a1 - add a0, a0, a1 + sh3add a1, a1, a2 + sh2add a0, a1, a0 ret func000000000000001e: # @func000000000000001e - slli a1, a1, 5 - sh3add.uw a1, a2, a1 - add a0, a0, a1 + zext.w a2, a2 + sh2add a1, a1, a2 + sh3add a0, a1, a0 ret diff --git a/result/rvb23u64/0aa73f34b0f18224.S b/result/rvb23u64/0aa73f34b0f18224.S index fa3d3f4ea71..bad4bd7009e 100644 --- a/result/rvb23u64/0aa73f34b0f18224.S +++ b/result/rvb23u64/0aa73f34b0f18224.S @@ -4,6 +4,6 @@ func000000000000001a: # @func000000000000001a slli a2, a2, 5 sub a2, a2, a3 add a0, a0, a2 + addi a1, a1, -1 sh2add a0, a1, a0 - addi a0, a0, -4 ret diff --git a/result/rvb23u64/0d2aad7af9e160bb.S b/result/rvb23u64/0d2aad7af9e160bb.S index 74e1811f66a..070f56bcc61 100644 --- a/result/rvb23u64/0d2aad7af9e160bb.S +++ b/result/rvb23u64/0d2aad7af9e160bb.S @@ -1,22 +1,24 @@ func000000000000002e: # @func000000000000002e - ori a1, a1, 4 - add a0, a0, a1 + srli a1, a1, 2 + ori a1, a1, 1 + sh2add a0, a1, a0 addi a0, a0, -8 ret func000000000000000e: # @func000000000000000e - ori a1, a1, 4 - andi a1, a1, -4 - add a0, a0, a1 + srli a1, a1, 2 + ori a1, a1, 1 + sh2add a0, a1, a0 addi a0, a0, -8 ret func000000000000002c: # @func000000000000002c - ori a1, a1, 4 - add a0, a0, a1 + srli a1, a1, 2 + ori a1, a1, 1 + sh2add a0, a1, a0 addi a0, a0, -8 ret func000000000000000c: # @func000000000000000c - ori a1, a1, 8 - andi a1, a1, -8 - add a0, a0, a1 + srli a1, a1, 3 + ori a1, a1, 1 + sh3add a0, a1, a0 addi a0, a0, -16 ret diff --git a/result/rvb23u64/0e94983bfeb767d5.S b/result/rvb23u64/0e94983bfeb767d5.S index 50080e4925a..3bd6108d07f 100644 --- a/result/rvb23u64/0e94983bfeb767d5.S +++ b/result/rvb23u64/0e94983bfeb767d5.S @@ -19,6 +19,6 @@ func0000000000000000: # @func0000000000000000 func0000000000000006: # @func0000000000000006 li a2, 1 maxu a1, a1, a2 + addi a1, a1, -1 sh3add a0, a1, a0 - addi a0, a0, -8 ret diff --git a/result/rvb23u64/0fc8722942f9e733.S b/result/rvb23u64/0fc8722942f9e733.S index 1ee1bd69240..68f8bf0f735 100644 --- a/result/rvb23u64/0fc8722942f9e733.S +++ b/result/rvb23u64/0fc8722942f9e733.S @@ -1,8 +1,8 @@ func000000000000001e: # @func000000000000001e andi a2, a2, 255 - slli a1, a1, 10 - sh2add a1, a2, a1 - add a0, a0, a1 + slli a1, a1, 8 + or a1, a1, a2 + sh2add a0, a1, a0 ret func0000000000000016: # @func0000000000000016 andi a2, a2, 255 diff --git a/result/rvb23u64/10e73c89436b900b.S b/result/rvb23u64/10e73c89436b900b.S index a061eb490ab..eb3ff045270 100644 --- a/result/rvb23u64/10e73c89436b900b.S +++ b/result/rvb23u64/10e73c89436b900b.S @@ -5,10 +5,10 @@ func000000000000001e: # @func000000000000001e addi a0, a0, 1 ret func000000000000001c: # @func000000000000001c - srli a1, a1, 22 - andi a1, a1, 124 - add a0, a0, a1 - addi a0, a0, 8 + slli a1, a1, 35 + srli a1, a1, 59 + addi a1, a1, 2 + sh2add a0, a1, a0 ret func000000000000000c: # @func000000000000000c srli a1, a1, 13 diff --git a/result/rvb23u64/117835588eb5fb57.S b/result/rvb23u64/117835588eb5fb57.S index 346cfcfa7c6..d64f026de57 100644 --- a/result/rvb23u64/117835588eb5fb57.S +++ b/result/rvb23u64/117835588eb5fb57.S @@ -4,6 +4,7 @@ func000000000000001a: # @func000000000000001a addi a0, a0, 48 ret func0000000000000012: # @func0000000000000012 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 6 + addi a0, a0, 2 ret diff --git a/result/rvb23u64/12f495358b06cd44.S b/result/rvb23u64/12f495358b06cd44.S index 54222523c31..8bbf02452cf 100644 --- a/result/rvb23u64/12f495358b06cd44.S +++ b/result/rvb23u64/12f495358b06cd44.S @@ -1,6 +1,7 @@ func0000000000000141: # @func0000000000000141 - sh3add a1, a2, a1 - addi a1, a1, 4 + slli a2, a2, 1 + addi a2, a2, 1 + sh2add a1, a2, a1 xor a0, a0, a1 seqz a0, a0 ret diff --git a/result/rvb23u64/143e3566cc3a05f5.S b/result/rvb23u64/143e3566cc3a05f5.S index b94bc40f321..d5537e694e5 100644 --- a/result/rvb23u64/143e3566cc3a05f5.S +++ b/result/rvb23u64/143e3566cc3a05f5.S @@ -20,8 +20,8 @@ func0000000000000004: # @func0000000000000004 ret func000000000000000c: # @func000000000000000c sext.w a1, a1 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func0000000000000008: # @func0000000000000008 addiw a1, a1, 1 @@ -29,6 +29,6 @@ func0000000000000008: # @func0000000000000008 ret func000000000000000e: # @func000000000000000e sext.w a1, a1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret diff --git a/result/rvb23u64/1468639365cf0ec4.S b/result/rvb23u64/1468639365cf0ec4.S index 07663577a21..8255caf1445 100644 --- a/result/rvb23u64/1468639365cf0ec4.S +++ b/result/rvb23u64/1468639365cf0ec4.S @@ -8,8 +8,8 @@ func00000000000000f0: # @func00000000000000f0 func00000000000000d4: # @func00000000000000d4 srli a2, a2, 4 sub a2, a2, a1 + addi a2, a2, 1 sh1add a0, a2, a0 - addi a0, a0, 2 ret func00000000000000d0: # @func00000000000000d0 srli a2, a2, 4 diff --git a/result/rvb23u64/14a75711615626b1.S b/result/rvb23u64/14a75711615626b1.S index 25224c08694..d5411656248 100644 --- a/result/rvb23u64/14a75711615626b1.S +++ b/result/rvb23u64/14a75711615626b1.S @@ -10,9 +10,9 @@ func0000000000000036: # @func0000000000000036 addi a0, a0, -1 ret func000000000000003e: # @func000000000000003e - slli a1, a1, 4 - add a0, a0, a1 - addi a0, a0, 32 + slli a1, a1, 1 + addi a1, a1, 4 + sh3add a0, a1, a0 ret func000000000000000e: # @func000000000000000e slli a1, a1, 5 @@ -24,17 +24,19 @@ func0000000000000002: # @func0000000000000002 addi a0, a0, 2 ret func000000000000002e: # @func000000000000002e - sh3add a0, a1, a0 - addi a0, a0, 16 + slli a1, a1, 1 + addi a1, a1, 4 + sh2add a0, a1, a0 ret func0000000000000016: # @func0000000000000016 - sh3add a0, a1, a0 - addi a0, a0, 8 + slli a1, a1, 1 + addi a1, a1, 2 + sh2add a0, a1, a0 ret func0000000000000026: # @func0000000000000026 - slli a1, a1, 4 - add a0, a0, a1 - addi a0, a0, -16 + slli a1, a1, 1 + addi a1, a1, -2 + sh3add a0, a1, a0 ret func000000000000002c: # @func000000000000002c sh1add a0, a1, a0 diff --git a/result/rvb23u64/14c9dcf5e942ff6a.S b/result/rvb23u64/14c9dcf5e942ff6a.S index e6ef032a238..db380d3fc11 100644 --- a/result/rvb23u64/14c9dcf5e942ff6a.S +++ b/result/rvb23u64/14c9dcf5e942ff6a.S @@ -1,8 +1,8 @@ func000000000000001e: # @func000000000000001e zext.h a2, a2 - slli a2, a2, 11 - sh3add a1, a1, a2 - add a0, a0, a1 + slli a2, a2, 8 + or a1, a1, a2 + sh3add a0, a1, a0 ret func000000000000003e: # @func000000000000003e zext.h a2, a2 diff --git a/result/rvb23u64/15b3f4ddba8c6fe4.S b/result/rvb23u64/15b3f4ddba8c6fe4.S index 198b1612e78..e4e474880e2 100644 --- a/result/rvb23u64/15b3f4ddba8c6fe4.S +++ b/result/rvb23u64/15b3f4ddba8c6fe4.S @@ -1,7 +1,7 @@ func0000000000000034: # @func0000000000000034 sub a2, a2, a1 + addi a2, a2, 1 sh1add a0, a2, a0 - addi a0, a0, 2 ret func0000000000000036: # @func0000000000000036 sub a2, a2, a1 @@ -20,13 +20,13 @@ func0000000000000000: # @func0000000000000000 ret func0000000000000028: # @func0000000000000028 sub a2, a2, a1 + addi a2, a2, 1 sh3add a0, a2, a0 - addi a0, a0, 8 ret func000000000000002a: # @func000000000000002a sub a2, a2, a1 + addi a2, a2, 1 sh3add a0, a2, a0 - addi a0, a0, 8 ret func0000000000000002: # @func0000000000000002 sub a2, a2, a1 @@ -62,8 +62,8 @@ func0000000000000012: # @func0000000000000012 ret func0000000000000008: # @func0000000000000008 sub a2, a2, a1 + addi a2, a2, 1 sh3add a0, a2, a0 - addi a0, a0, 8 ret func000000000000003a: # @func000000000000003a sub a2, a2, a1 @@ -73,8 +73,8 @@ func000000000000003a: # @func000000000000003a ret func0000000000000032: # @func0000000000000032 sub a2, a2, a1 + addi a2, a2, 1 sh2add a0, a2, a0 - addi a0, a0, 4 ret func0000000000000014: # @func0000000000000014 sub a2, a2, a1 @@ -93,8 +93,8 @@ func000000000000001e: # @func000000000000001e ret func000000000000000b: # @func000000000000000b sub a2, a2, a1 + addi a2, a2, 1 sh3add a0, a2, a0 - addi a0, a0, 8 ret func0000000000000017: # @func0000000000000017 not a1, a1 @@ -105,8 +105,8 @@ func0000000000000017: # @func0000000000000017 ret func0000000000000003: # @func0000000000000003 sub a2, a2, a1 + addi a2, a2, 1 sh3add a0, a2, a0 - addi a0, a0, 8 ret func0000000000000038: # @func0000000000000038 sub a2, a2, a1 @@ -121,18 +121,18 @@ func0000000000000010: # @func0000000000000010 ret func0000000000000020: # @func0000000000000020 sub a2, a2, a1 + addi a2, a2, 1 sh2add a0, a2, a0 - addi a0, a0, 4 ret func0000000000000030: # @func0000000000000030 sub a2, a2, a1 + addi a2, a2, 1 sh2add a0, a2, a0 - addi a0, a0, 4 ret func0000000000000006: # @func0000000000000006 sub a2, a2, a1 + addi a2, a2, 1 sh3add a0, a2, a0 - addi a0, a0, 8 ret func000000000000003c: # @func000000000000003c sub a2, a2, a1 @@ -143,11 +143,11 @@ func000000000000003c: # @func000000000000003c ret func0000000000000018: # @func0000000000000018 sub a2, a2, a1 + addi a2, a2, 1 sh3add a0, a2, a0 - addi a0, a0, 8 ret func000000000000001a: # @func000000000000001a sub a2, a2, a1 + addi a2, a2, 1 sh3add a0, a2, a0 - addi a0, a0, 8 ret diff --git a/result/rvb23u64/1686a2b0ccd433b6.S b/result/rvb23u64/1686a2b0ccd433b6.S index 8dbd916eb3a..1be4b62cc44 100644 --- a/result/rvb23u64/1686a2b0ccd433b6.S +++ b/result/rvb23u64/1686a2b0ccd433b6.S @@ -1,7 +1,8 @@ func0000000000000055: # @func0000000000000055 add a0, a0, a1 + addi a0, a0, -48 slli a0, a0, 3 - addiw a0, a0, -432 + addiw a0, a0, -48 ret func0000000000000050: # @func0000000000000050 add a0, a0, a1 @@ -11,13 +12,15 @@ func0000000000000050: # @func0000000000000050 ret func0000000000000040: # @func0000000000000040 add a0, a0, a1 + addi a0, a0, -1 slli a0, a0, 1 - addiw a0, a0, 3 + addiw a0, a0, 5 ret func0000000000000000: # @func0000000000000000 add a0, a0, a1 + addi a0, a0, -1 slli a0, a0, 1 - addiw a0, a0, 2 + addiw a0, a0, 4 ret func0000000000000005: # @func0000000000000005 add a0, a0, a1 @@ -28,10 +31,13 @@ func0000000000000005: # @func0000000000000005 ret func000000000000000d: # @func000000000000000d add a0, a0, a1 - slliw a0, a0, 3 + addi a0, a0, 1 + slli a0, a0, 3 + addiw a0, a0, -8 ret func000000000000005d: # @func000000000000005d add a0, a0, a1 + addi a0, a0, -48 slli a0, a0, 3 - addiw a0, a0, -432 + addiw a0, a0, -48 ret diff --git a/result/rvb23u64/17273310675415c8.S b/result/rvb23u64/17273310675415c8.S index 10fc93face4..37d32277fd6 100644 --- a/result/rvb23u64/17273310675415c8.S +++ b/result/rvb23u64/17273310675415c8.S @@ -36,9 +36,10 @@ func0000000000000012: # @func0000000000000012 addi a0, a0, 6 ret func0000000000000078: # @func0000000000000078 - slli a1, a1, 4 - add a0, a0, a1 - addi a0, a0, 12 + slli a1, a1, 1 + addi a1, a1, 1 + sh3add a0, a1, a0 + addi a0, a0, 4 ret func000000000000007a: # @func000000000000007a slli a1, a1, 1 @@ -64,8 +65,10 @@ func000000000000001f: # @func000000000000001f addi a0, a0, 24 ret func0000000000000070: # @func0000000000000070 - sh3add a0, a1, a0 - addi a0, a0, 6 + slli a1, a1, 2 + addi a1, a1, 2 + sh1add a0, a1, a0 + addi a0, a0, 2 ret func000000000000007b: # @func000000000000007b slli a1, a1, 6 @@ -85,9 +88,10 @@ func0000000000000032: # @func0000000000000032 addi a0, a0, 8 ret func0000000000000072: # @func0000000000000072 - slli a1, a1, 4 - add a0, a0, a1 - addi a0, a0, 14 + slli a1, a1, 1 + addi a1, a1, 1 + sh3add a0, a1, a0 + addi a0, a0, 6 ret func0000000000000052: # @func0000000000000052 slli a1, a1, 1 diff --git a/result/rvb23u64/1866d73e111d643a.S b/result/rvb23u64/1866d73e111d643a.S index 7ba321da800..f22a7188bf6 100644 --- a/result/rvb23u64/1866d73e111d643a.S +++ b/result/rvb23u64/1866d73e111d643a.S @@ -1,10 +1,10 @@ func000000000000005c: # @func000000000000005c + addi a2, a2, 1 sh2add a0, a2, a0 - addi a0, a0, 4 ret func000000000000005e: # @func000000000000005e + addi a2, a2, 1 sh2add a0, a2, a0 - addi a0, a0, 4 ret func0000000000000008: # @func0000000000000008 add a0, a0, a2 diff --git a/result/rvb23u64/1900f323fa12a71a.S b/result/rvb23u64/1900f323fa12a71a.S index c240b40c680..8257a50ff53 100644 --- a/result/rvb23u64/1900f323fa12a71a.S +++ b/result/rvb23u64/1900f323fa12a71a.S @@ -1,7 +1,10 @@ func0000000000000001: # @func0000000000000001 + add a1, a1, a2 + lui a2, 524288 + addi a2, a2, -8 add a1, a1, a2 sh1add a0, a1, a0 - addiw a0, a0, -14 + addiw a0, a0, 2 ret func000000000000000a: # @func000000000000000a add a1, a1, a2 diff --git a/result/rvb23u64/1b6d54e1239a5089.S b/result/rvb23u64/1b6d54e1239a5089.S index 65823270a8b..a16e4598a0d 100644 --- a/result/rvb23u64/1b6d54e1239a5089.S +++ b/result/rvb23u64/1b6d54e1239a5089.S @@ -1,20 +1,24 @@ func00000000000000ba: # @func00000000000000ba - srai a1, a1, 1 - add a0, a0, a1 - addi a0, a0, -4 + srai a1, a1, 3 + addi a1, a1, -2 + sh2add a0, a1, a0 + addi a0, a0, 4 ret func000000000000003a: # @func000000000000003a srai a1, a1, 3 + addi a1, a1, -2 sh2add a0, a1, a0 - addi a0, a0, -4 + addi a0, a0, 4 ret func000000000000003b: # @func000000000000003b srai a1, a1, 3 + addi a1, a1, -2 sh2add a0, a1, a0 - addi a0, a0, -4 + addi a0, a0, 4 ret func00000000000000bb: # @func00000000000000bb - srai a1, a1, 1 - add a0, a0, a1 - addi a0, a0, -4 + srai a1, a1, 3 + addi a1, a1, -2 + sh2add a0, a1, a0 + addi a0, a0, 4 ret diff --git a/result/rvb23u64/1bcdcf7653d1c096.S b/result/rvb23u64/1bcdcf7653d1c096.S index c08a080b1de..bb8577391ef 100644 --- a/result/rvb23u64/1bcdcf7653d1c096.S +++ b/result/rvb23u64/1bcdcf7653d1c096.S @@ -2,14 +2,16 @@ func000000000000009a: # @func000000000000009a li a3, 168 mul a2, a2, a3 add a1, a1, a2 + addi a0, a0, -1 sh3add a0, a0, a1 - addi a0, a0, 48 + addi a0, a0, 56 ret func00000000000000ba: # @func00000000000000ba + addi a0, a0, 1 sh1add a2, a2, a2 sh2add a0, a2, a0 sh2add a0, a0, a1 - addi a0, a0, 16 + addi a0, a0, 12 ret func000000000000008a: # @func000000000000008a add a1, a1, a2 diff --git a/result/rvb23u64/1c2447f01bb53ae5.S b/result/rvb23u64/1c2447f01bb53ae5.S index a61fa1d986f..59e654ed520 100644 --- a/result/rvb23u64/1c2447f01bb53ae5.S +++ b/result/rvb23u64/1c2447f01bb53ae5.S @@ -1,18 +1,15 @@ func000000000000003a: # @func000000000000003a - slli a1, a1, 3 - ori a1, a1, 8 - add a0, a0, a1 + ori a1, a1, 1 + sh3add a0, a1, a0 addi a0, a0, -12 ret func000000000000003b: # @func000000000000003b - slli a1, a1, 3 - ori a1, a1, 8 - add a0, a0, a1 + ori a1, a1, 1 + sh3add a0, a1, a0 addi a0, a0, -12 ret func0000000000000032: # @func0000000000000032 - slli a1, a1, 3 - ori a1, a1, 8 - add a0, a0, a1 + ori a1, a1, 1 + sh3add a0, a1, a0 addi a0, a0, -12 ret diff --git a/result/rvb23u64/1c61b9ebf67d9110.S b/result/rvb23u64/1c61b9ebf67d9110.S index 18d986d4d2c..5325040e9e2 100644 --- a/result/rvb23u64/1c61b9ebf67d9110.S +++ b/result/rvb23u64/1c61b9ebf67d9110.S @@ -1,12 +1,16 @@ func0000000000000120: # @func0000000000000120 srli a1, a1, 3 sub a0, a0, a1 + addi a0, a0, 1 slli a0, a0, 3 + addi a0, a0, -8 ret func000000000000012d: # @func000000000000012d srli a1, a1, 3 sub a0, a0, a1 + addi a0, a0, 1 slli a0, a0, 3 + addi a0, a0, -8 ret func0000000000000170: # @func0000000000000170 not a1, a1 @@ -25,10 +29,14 @@ func000000000000017d: # @func000000000000017d func0000000000000160: # @func0000000000000160 srli a1, a1, 3 sub a0, a0, a1 + addi a0, a0, 1 slli a0, a0, 3 + addi a0, a0, -8 ret func000000000000016d: # @func000000000000016d srli a1, a1, 3 sub a0, a0, a1 + addi a0, a0, 1 slli a0, a0, 3 + addi a0, a0, -8 ret diff --git a/result/rvb23u64/1e4d5cdba8a9eb98.S b/result/rvb23u64/1e4d5cdba8a9eb98.S index 475c4ccfa9c..12a93d41517 100644 --- a/result/rvb23u64/1e4d5cdba8a9eb98.S +++ b/result/rvb23u64/1e4d5cdba8a9eb98.S @@ -1,14 +1,13 @@ func000000000000003e: # @func000000000000003e - slli a2, a2, 6 - sh2add a1, a1, a2 - add a0, a0, a1 - addi a0, a0, 1024 + slli a2, a2, 4 + or a1, a1, a2 + addi a1, a1, 256 + sh2add a0, a1, a0 ret func000000000000000c: # @func000000000000000c - slli a1, a1, 2 - sh3add a1, a2, a1 - add a0, a0, a1 - addi a0, a0, 64 + sh1add a1, a2, a1 + addi a1, a1, 16 + sh2add a0, a1, a0 ret func0000000000000006: # @func0000000000000006 slli a2, a2, 6 diff --git a/result/rvb23u64/1eb5914825e75334.S b/result/rvb23u64/1eb5914825e75334.S index 84e11ad954e..60896cc9ab3 100644 --- a/result/rvb23u64/1eb5914825e75334.S +++ b/result/rvb23u64/1eb5914825e75334.S @@ -14,8 +14,8 @@ func000000000000001c: # @func000000000000001c ret func000000000000001e: # @func000000000000001e zext.h a2, a2 + slli a2, a2, 16 zext.h a1, a1 - slli a2, a2, 18 - sh2add a1, a1, a2 - add a0, a0, a1 + or a1, a1, a2 + sh2add a0, a1, a0 ret diff --git a/result/rvb23u64/1fb3ce5c696d7758.S b/result/rvb23u64/1fb3ce5c696d7758.S index 3f5bf954d06..348183a70eb 100644 --- a/result/rvb23u64/1fb3ce5c696d7758.S +++ b/result/rvb23u64/1fb3ce5c696d7758.S @@ -1,6 +1,6 @@ func0000000000000016: # @func0000000000000016 sext.w a2, a2 add a1, a1, a2 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret diff --git a/result/rvb23u64/202bb0b90c7984d5.S b/result/rvb23u64/202bb0b90c7984d5.S index 4d0b2b62dd0..b736f8492dc 100644 --- a/result/rvb23u64/202bb0b90c7984d5.S +++ b/result/rvb23u64/202bb0b90c7984d5.S @@ -1,7 +1,7 @@ func000000000000001a: # @func000000000000001a sh1add a0, a2, a0 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func000000000000007a: # @func000000000000007a sh1add a0, a2, a0 @@ -9,18 +9,18 @@ func000000000000007a: # @func000000000000007a addi a0, a0, 1 ret func000000000000003a: # @func000000000000003a + addi a1, a1, 1 sh2add a1, a2, a1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func0000000000000010: # @func0000000000000010 + addi a1, a1, 3 sh2add a1, a2, a1 sh2add a0, a1, a0 - addi a0, a0, 12 ret func0000000000000070: # @func0000000000000070 slli a2, a2, 7 add a0, a0, a2 + addi a1, a1, 16 sh2add a0, a1, a0 - addi a0, a0, 64 ret diff --git a/result/rvb23u64/214c1c2c05efde6e.S b/result/rvb23u64/214c1c2c05efde6e.S index 0a1c106cf21..275fe5c4032 100644 --- a/result/rvb23u64/214c1c2c05efde6e.S +++ b/result/rvb23u64/214c1c2c05efde6e.S @@ -1,6 +1,4 @@ func0000000000000006: # @func0000000000000006 - srliw a1, a1, 1 - slli a1, a1, 1 - sh3add a0, a1, a0 - addi a0, a0, 8 + ori a1, a1, 1 + sh3add.uw a0, a1, a0 ret diff --git a/result/rvb23u64/2199f3ac9acb3c4c.S b/result/rvb23u64/2199f3ac9acb3c4c.S index 6b54c0de3a6..d44f8b3f453 100644 --- a/result/rvb23u64/2199f3ac9acb3c4c.S +++ b/result/rvb23u64/2199f3ac9acb3c4c.S @@ -8,6 +8,6 @@ func000000000000000e: # @func000000000000000e andi a1, a1, 3 addi a1, a1, -2 seqz a1, a1 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret diff --git a/result/rvb23u64/22145562082b992b.S b/result/rvb23u64/22145562082b992b.S index 0c3ed7a1a89..3c9883911e3 100644 --- a/result/rvb23u64/22145562082b992b.S +++ b/result/rvb23u64/22145562082b992b.S @@ -11,8 +11,9 @@ func000000000000008a: # @func000000000000008a ret func0000000000000080: # @func0000000000000080 sub a2, a2, a1 + addi a2, a2, 3 sh2add a0, a2, a0 - addi a0, a0, 4 + addi a0, a0, -8 ret func0000000000000008: # @func0000000000000008 sub a2, a2, a1 diff --git a/result/rvb23u64/2297eeb19615ad04.S b/result/rvb23u64/2297eeb19615ad04.S index 43ec4ba28b3..5443ebe8483 100644 --- a/result/rvb23u64/2297eeb19615ad04.S +++ b/result/rvb23u64/2297eeb19615ad04.S @@ -1,14 +1,13 @@ func000000000000000e: # @func000000000000000e andi a1, a1, 255 + addi a1, a1, 256 sh2add a0, a1, a0 - addi a0, a0, 1024 ret func000000000000000c: # @func000000000000000c andi a1, a1, 127 + li a2, 1312 + sh2add a1, a2, a1 sh2add a0, a1, a0 - lui a1, 5 - addiw a1, a1, 512 - add a0, a0, a1 ret func000000000000000a: # @func000000000000000a ori a1, a1, 48 diff --git a/result/rvb23u64/22cc3479e318d53a.S b/result/rvb23u64/22cc3479e318d53a.S index 5f024550c62..c7c24836ad1 100644 --- a/result/rvb23u64/22cc3479e318d53a.S +++ b/result/rvb23u64/22cc3479e318d53a.S @@ -1,7 +1,7 @@ func0000000000000016: # @func0000000000000016 sub a1, a1, a2 + addi a1, a1, 4 sh3add a0, a1, a0 - addi a0, a0, 32 ret func0000000000000002: # @func0000000000000002 sub a1, a1, a2 @@ -26,8 +26,8 @@ func0000000000000026: # @func0000000000000026 ret func0000000000000036: # @func0000000000000036 sub a1, a1, a2 + addi a1, a1, -2 sh2add a0, a1, a0 - addi a0, a0, -8 ret func0000000000000000: # @func0000000000000000 sub a1, a1, a2 diff --git a/result/rvb23u64/23d58ce774d11a59.S b/result/rvb23u64/23d58ce774d11a59.S index 6d9c5e36f57..db5ec295044 100644 --- a/result/rvb23u64/23d58ce774d11a59.S +++ b/result/rvb23u64/23d58ce774d11a59.S @@ -1,33 +1,39 @@ func0000000000000018: # @func0000000000000018 + addi a0, a0, -1 li a3, 272 mul a2, a2, a3 add a1, a1, a2 sh3add a0, a0, a1 - addi a0, a0, 16 + addi a0, a0, 24 ret func000000000000009a: # @func000000000000009a + addi a0, a0, -1 slli a3, a2, 8 sh3add a2, a2, a3 add a1, a1, a2 sh2add a0, a0, a1 - addi a0, a0, 124 + addi a0, a0, 128 ret func00000000000000ba: # @func00000000000000ba slli a3, a2, 8 sh3add a2, a2, a3 add a1, a1, a2 + addi a0, a0, 1 sh2add a0, a0, a1 - addi a0, a0, 232 + addi a0, a0, 228 ret func000000000000008a: # @func000000000000008a slli a2, a2, 6 add a1, a1, a2 + addi a0, a0, -1 sh2add a0, a0, a1 + addi a0, a0, 4 ret func0000000000000038: # @func0000000000000038 + addi a0, a0, 1 li a3, 1216 mul a2, a2, a3 add a1, a1, a2 sh3add a0, a0, a1 - addi a0, a0, 1096 + addi a0, a0, 1088 ret diff --git a/result/rvb23u64/24415133805d1e98.S b/result/rvb23u64/24415133805d1e98.S index 6612c4c9ed4..2b260b250fe 100644 --- a/result/rvb23u64/24415133805d1e98.S +++ b/result/rvb23u64/24415133805d1e98.S @@ -6,8 +6,8 @@ func0000000000000032: # @func0000000000000032 func0000000000000004: # @func0000000000000004 sext.w a1, a1 snez a1, a1 + addi a1, a1, -1 sh3add a0, a1, a0 - addi a0, a0, -8 ret func0000000000000006: # @func0000000000000006 sext.w a1, a1 diff --git a/result/rvb23u64/245dad04b34c465e.S b/result/rvb23u64/245dad04b34c465e.S index 3ad5c10ebbd..87eac7b2085 100644 --- a/result/rvb23u64/245dad04b34c465e.S +++ b/result/rvb23u64/245dad04b34c465e.S @@ -1,6 +1,7 @@ func0000000000000006: # @func0000000000000006 - sh3add.uw a0, a1, a0 - addi a0, a0, -8 + zext.w a1, a1 + addi a1, a1, -1 + sh3add a0, a1, a0 ret func000000000000000e: # @func000000000000000e add.uw a0, a1, a0 diff --git a/result/rvb23u64/27006675a68a35a2.S b/result/rvb23u64/27006675a68a35a2.S index 52eb84ae8d1..b4791b8db8a 100644 --- a/result/rvb23u64/27006675a68a35a2.S +++ b/result/rvb23u64/27006675a68a35a2.S @@ -1,8 +1,9 @@ func0000000000000018: # @func0000000000000018 zext.h a1, a1 + addi a1, a1, -1 sh1add a0, a1, a0 lui a1, 7 - addiw a1, a1, 966 + addiw a1, a1, 968 add a0, a0, a1 ret func000000000000001a: # @func000000000000001a @@ -12,23 +13,27 @@ func000000000000001a: # @func000000000000001a ret func000000000000003e: # @func000000000000003e zext.h a1, a1 + addi a1, a1, 200 sh3add a0, a1, a0 lui a1, 97 - addiw a1, a1, 1160 + addiw a1, a1, -440 add a0, a0, a1 ret func0000000000000058: # @func0000000000000058 zext.h a1, a1 + addi a1, a1, -1 sh2add a0, a1, a0 - addi a0, a0, 196 + addi a0, a0, 200 ret func000000000000003a: # @func000000000000003a zext.h a1, a1 + addi a1, a1, 8 sh1add a0, a1, a0 - addi a0, a0, 418 + addi a0, a0, 402 ret func000000000000005a: # @func000000000000005a zext.h a1, a1 + addi a1, a1, -1 sh2add a0, a1, a0 - addi a0, a0, 4 + addi a0, a0, 8 ret diff --git a/result/rvb23u64/271a135010fa41d7.S b/result/rvb23u64/271a135010fa41d7.S index 30e89d03eb2..9b3ceecf153 100644 --- a/result/rvb23u64/271a135010fa41d7.S +++ b/result/rvb23u64/271a135010fa41d7.S @@ -1,7 +1,8 @@ func0000000000000018: # @func0000000000000018 sext.w a1, a1 + addi a1, a1, 1 sh1add a0, a1, a0 - addi a0, a0, 18 + addi a0, a0, 16 ret func0000000000000008: # @func0000000000000008 addiw a1, a1, 1 @@ -15,5 +16,7 @@ func0000000000000028: # @func0000000000000028 ret func000000000000001a: # @func000000000000001a sext.w a1, a1 + addi a1, a1, -1 sh3add a0, a1, a0 + addi a0, a0, 8 ret diff --git a/result/rvb23u64/2ac7b6557a110851.S b/result/rvb23u64/2ac7b6557a110851.S index 8850ebfa9c9..8c6f4b47170 100644 --- a/result/rvb23u64/2ac7b6557a110851.S +++ b/result/rvb23u64/2ac7b6557a110851.S @@ -11,6 +11,6 @@ func0000000000000016: # @func0000000000000016 ret func0000000000000014: # @func0000000000000014 zext.h a1, a1 + addi a1, a1, -1 sh2add a0, a1, a0 - addi a0, a0, -4 ret diff --git a/result/rvb23u64/2b252afafee8807c.S b/result/rvb23u64/2b252afafee8807c.S index f971b98a4db..9132ef43e6c 100644 --- a/result/rvb23u64/2b252afafee8807c.S +++ b/result/rvb23u64/2b252afafee8807c.S @@ -1,7 +1,7 @@ func000000000000000e: # @func000000000000000e slliw a1, a1, 1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func0000000000000004: # @func0000000000000004 slliw a1, a1, 3 @@ -15,11 +15,11 @@ func0000000000000006: # @func0000000000000006 ret func0000000000000016: # @func0000000000000016 slliw a1, a1, 1 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func000000000000000c: # @func000000000000000c slliw a1, a1, 1 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret diff --git a/result/rvb23u64/2d117797d88b74a5.S b/result/rvb23u64/2d117797d88b74a5.S index 313e57d915c..dafd9a399ee 100644 --- a/result/rvb23u64/2d117797d88b74a5.S +++ b/result/rvb23u64/2d117797d88b74a5.S @@ -16,8 +16,9 @@ func0000000000000010: # @func0000000000000010 add a0, a0, a1 ret func000000000000001e: # @func000000000000001e + addi a1, a1, 1 sh1add a0, a1, a0 lui a1, 97 - addiw a1, a1, 1986 + addiw a1, a1, 1984 add a0, a0, a1 ret diff --git a/result/rvb23u64/2d3dec196899a334.S b/result/rvb23u64/2d3dec196899a334.S index 51f269c1602..566e13a4879 100644 --- a/result/rvb23u64/2d3dec196899a334.S +++ b/result/rvb23u64/2d3dec196899a334.S @@ -1,6 +1,6 @@ func0000000000000310: # @func0000000000000310 seqz a2, a2 + addi a2, a2, -1 sub a0, a0, a1 sh3add a0, a2, a0 - addi a0, a0, -8 ret diff --git a/result/rvb23u64/2eaf7ee8a91cf4be.S b/result/rvb23u64/2eaf7ee8a91cf4be.S index 952a91510c8..784ed4f9d33 100644 --- a/result/rvb23u64/2eaf7ee8a91cf4be.S +++ b/result/rvb23u64/2eaf7ee8a91cf4be.S @@ -5,8 +5,9 @@ func0000000000000002: # @func0000000000000002 ret func0000000000000016: # @func0000000000000016 sext.w a1, a1 - sh3add a0, a1, a0 - addi a0, a0, 8 + slli a1, a1, 1 + addi a1, a1, 2 + sh2add a0, a1, a0 ret func0000000000000036: # @func0000000000000036 sext.w a1, a1 @@ -16,8 +17,8 @@ func0000000000000036: # @func0000000000000036 ret func0000000000000026: # @func0000000000000026 slliw a1, a1, 1 + addi a1, a1, -2 sh2add a0, a1, a0 - addi a0, a0, -8 ret func0000000000000000: # @func0000000000000000 slli a1, a1, 1 @@ -26,6 +27,6 @@ func0000000000000000: # @func0000000000000000 ret func0000000000000006: # @func0000000000000006 slliw a1, a1, 2 + addi a1, a1, -4 sh3add a0, a1, a0 - addi a0, a0, -32 ret diff --git a/result/rvb23u64/30077796cc486319.S b/result/rvb23u64/30077796cc486319.S index 6665cbbef9e..52926776cb1 100644 --- a/result/rvb23u64/30077796cc486319.S +++ b/result/rvb23u64/30077796cc486319.S @@ -5,11 +5,11 @@ func0000000000000012: # @func0000000000000012 ret func0000000000000016: # @func0000000000000016 add a1, a1, a2 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func000000000000001e: # @func000000000000001e add a1, a1, a2 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret diff --git a/result/rvb23u64/301fb96f842239d3.S b/result/rvb23u64/301fb96f842239d3.S index a6c2bff1b51..88d84d7de4b 100644 --- a/result/rvb23u64/301fb96f842239d3.S +++ b/result/rvb23u64/301fb96f842239d3.S @@ -23,9 +23,8 @@ func0000000000000078: # @func0000000000000078 addi a0, a0, 18 ret func000000000000003a: # @func000000000000003a - slli a1, a1, 2 - sh3add a1, a2, a1 - add a0, a0, a1 + sh1add a1, a2, a1 + sh2add a0, a1, a0 addi a0, a0, 208 ret func0000000000000010: # @func0000000000000010 diff --git a/result/rvb23u64/309e62699393c765.S b/result/rvb23u64/309e62699393c765.S index f024134b73a..ca1511a41ba 100644 --- a/result/rvb23u64/309e62699393c765.S +++ b/result/rvb23u64/309e62699393c765.S @@ -1,10 +1,9 @@ func0000000000000000: # @func0000000000000000 - not a1, a1 - li a2, -1 - slli a1, a1, 3 - slli a2, a2, 35 - or a1, a1, a2 - add a0, a0, a1 + lui a2, 131072 + addi a2, a2, -1 + slli a2, a2, 32 + orn a1, a2, a1 + sh3add a0, a1, a0 ret func0000000000000004: # @func0000000000000004 not a1, a1 @@ -13,12 +12,11 @@ func0000000000000004: # @func0000000000000004 sh3add a0, a1, a0 ret func0000000000000002: # @func0000000000000002 - not a1, a1 - li a2, -1 - slli a1, a1, 3 - slli a2, a2, 35 - or a1, a1, a2 - add a0, a0, a1 + lui a2, 131072 + addi a2, a2, -1 + slli a2, a2, 32 + orn a1, a2, a1 + sh3add a0, a1, a0 ret func0000000000000006: # @func0000000000000006 xori a1, a1, 3 diff --git a/result/rvb23u64/31c51de230cc5efc.S b/result/rvb23u64/31c51de230cc5efc.S index eb07889301e..3ce61c40658 100644 --- a/result/rvb23u64/31c51de230cc5efc.S +++ b/result/rvb23u64/31c51de230cc5efc.S @@ -6,6 +6,7 @@ func000000000000003c: # @func000000000000003c ret func000000000000003e: # @func000000000000003e zext.h a1, a1 - sh2add a0, a1, a0 - addi a0, a0, 2 + slli a1, a1, 1 + addi a1, a1, 1 + sh1add a0, a1, a0 ret diff --git a/result/rvb23u64/31eb20402ea3fada.S b/result/rvb23u64/31eb20402ea3fada.S index 0b2b12a42d2..bf4f20d721e 100644 --- a/result/rvb23u64/31eb20402ea3fada.S +++ b/result/rvb23u64/31eb20402ea3fada.S @@ -1,27 +1,30 @@ func00000000000000ba: # @func00000000000000ba - ori a1, a1, 8 - add a0, a0, a1 + srli a1, a1, 3 + ori a1, a1, 1 + sh3add a0, a1, a0 addi a0, a0, -12 ret func000000000000003a: # @func000000000000003a - ori a1, a1, 8 - andi a1, a1, -8 - add a0, a0, a1 + srli a1, a1, 3 + ori a1, a1, 1 + sh3add a0, a1, a0 addi a0, a0, -12 ret func000000000000003b: # @func000000000000003b - ori a1, a1, 8 - andi a1, a1, -8 - add a0, a0, a1 + srli a1, a1, 3 + ori a1, a1, 1 + sh3add a0, a1, a0 addi a0, a0, -12 ret func00000000000000bb: # @func00000000000000bb - ori a1, a1, 8 - add a0, a0, a1 + srli a1, a1, 3 + ori a1, a1, 1 + sh3add a0, a1, a0 addi a0, a0, -12 ret func00000000000000b2: # @func00000000000000b2 - ori a1, a1, 8 - add a0, a0, a1 + srli a1, a1, 3 + ori a1, a1, 1 + sh3add a0, a1, a0 addi a0, a0, -12 ret diff --git a/result/rvb23u64/320628f2e78d7722.S b/result/rvb23u64/320628f2e78d7722.S index 0a082ec93ef..85517e2c803 100644 --- a/result/rvb23u64/320628f2e78d7722.S +++ b/result/rvb23u64/320628f2e78d7722.S @@ -33,16 +33,16 @@ func000000000000003c: # @func000000000000003c ret func000000000000003e: # @func000000000000003e sub a2, a2, a1 + addi a2, a2, 7 sh2add a0, a2, a0 - addi a0, a0, 28 ret func0000000000000032: # @func0000000000000032 sub a2, a2, a1 + addi a2, a2, 1 sh1add a0, a2, a0 - addi a0, a0, 2 ret func0000000000000036: # @func0000000000000036 sub a2, a2, a1 + addi a2, a2, 4 sh2add a0, a2, a0 - addi a0, a0, 16 ret diff --git a/result/rvb23u64/3289549d4be5e0aa.S b/result/rvb23u64/3289549d4be5e0aa.S index 5ae206027f0..130457acb3a 100644 --- a/result/rvb23u64/3289549d4be5e0aa.S +++ b/result/rvb23u64/3289549d4be5e0aa.S @@ -1,31 +1,42 @@ func0000000000000010: # @func0000000000000010 slliw a1, a1, 1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 8 + addi a0, a0, 4 ret func000000000000003a: # @func000000000000003a slliw a1, a1, 1 + addi a1, a1, 1 sh1add a0, a1, a0 - addi a0, a0, 6 + addi a0, a0, 4 ret func000000000000001a: # @func000000000000001a slliw a1, a1, 2 + addi a1, a1, 3 sh2add a0, a1, a0 - addi a0, a0, 28 + addi a0, a0, 16 ret func0000000000000018: # @func0000000000000018 slliw a1, a1, 1 + addi a1, a1, 1 sh2add a0, a1, a0 + addi a0, a0, -4 ret func0000000000000038: # @func0000000000000038 slliw a1, a1, 1 + addi a1, a1, 1 sh3add a0, a1, a0 + addi a0, a0, -8 ret func0000000000000030: # @func0000000000000030 slliw a1, a1, 1 + addi a1, a1, 1 sh3add a0, a1, a0 + addi a0, a0, -8 ret func000000000000005a: # @func000000000000005a slliw a1, a1, 1 + addi a1, a1, 1 sh3add a0, a1, a0 + addi a0, a0, -8 ret diff --git a/result/rvb23u64/3398ebb610250d82.S b/result/rvb23u64/3398ebb610250d82.S index ecad119bc18..72a22267c7f 100644 --- a/result/rvb23u64/3398ebb610250d82.S +++ b/result/rvb23u64/3398ebb610250d82.S @@ -12,9 +12,9 @@ func0000000000000004: # @func0000000000000004 add a0, a0, a1 ret func000000000000002e: # @func000000000000002e - slli a1, a1, 5 - add a0, a0, a1 - addi a0, a0, -32 + slli a1, a1, 3 + addi a1, a1, -8 + sh2add a0, a1, a0 ret func0000000000000014: # @func0000000000000014 addiw a1, a1, 1 diff --git a/result/rvb23u64/341fbf265bfb8072.S b/result/rvb23u64/341fbf265bfb8072.S index 88fe938fe3e..80a1152c5f4 100644 --- a/result/rvb23u64/341fbf265bfb8072.S +++ b/result/rvb23u64/341fbf265bfb8072.S @@ -1,8 +1,8 @@ func0000000000000012: # @func0000000000000012 add a1, a1, a2 srliw a1, a1, 1 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func0000000000000008: # @func0000000000000008 add a1, a1, a2 diff --git a/result/rvb23u64/34583e7bd838e267.S b/result/rvb23u64/34583e7bd838e267.S index afc21f09a73..58d8da9e0e7 100644 --- a/result/rvb23u64/34583e7bd838e267.S +++ b/result/rvb23u64/34583e7bd838e267.S @@ -5,12 +5,12 @@ func000000000000003a: # @func000000000000003a ret func000000000000002a: # @func000000000000002a sh2add.uw a0, a2, a0 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func0000000000000030: # @func0000000000000030 slli.uw a2, a2, 5 add a0, a0, a2 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret diff --git a/result/rvb23u64/35551cbd91370d18.S b/result/rvb23u64/35551cbd91370d18.S index 433ff73be61..7cffff8a9ed 100644 --- a/result/rvb23u64/35551cbd91370d18.S +++ b/result/rvb23u64/35551cbd91370d18.S @@ -12,10 +12,9 @@ func0000000000000016: # @func0000000000000016 addi a0, a0, 16 ret func0000000000000004: # @func0000000000000004 - not a2, a2 - slli a2, a2, 3 - ori a2, a2, -16 - add a0, a0, a2 + li a3, -2 + orn a2, a3, a2 + sh3add a0, a2, a0 sh3add a0, a1, a0 ret func0000000000000002: # @func0000000000000002 diff --git a/result/rvb23u64/35c00e4af042231d.S b/result/rvb23u64/35c00e4af042231d.S index 8704967de14..88f6537172e 100644 --- a/result/rvb23u64/35c00e4af042231d.S +++ b/result/rvb23u64/35c00e4af042231d.S @@ -2,6 +2,6 @@ func0000000000000012: # @func0000000000000012 sext.w a2, a2 sext.w a1, a1 sltu a1, a1, a2 + addi a1, a1, -1 sh3add a0, a1, a0 - addi a0, a0, -8 ret diff --git a/result/rvb23u64/3650feb8a8004e0d.S b/result/rvb23u64/3650feb8a8004e0d.S index ad21de7f1b9..219464cbeee 100644 --- a/result/rvb23u64/3650feb8a8004e0d.S +++ b/result/rvb23u64/3650feb8a8004e0d.S @@ -1,6 +1,6 @@ func000000000000000e: # @func000000000000000e - ori a1, a1, 8 - andi a1, a1, -8 - add a0, a0, a1 + srli a1, a1, 3 + ori a1, a1, 1 + sh3add a0, a1, a0 addi a0, a0, -16 ret diff --git a/result/rvb23u64/36f98cd5abd20a5e.S b/result/rvb23u64/36f98cd5abd20a5e.S index 1e9d1cf01b6..b2cb921e38d 100644 --- a/result/rvb23u64/36f98cd5abd20a5e.S +++ b/result/rvb23u64/36f98cd5abd20a5e.S @@ -10,8 +10,8 @@ func0000000000000002: # @func0000000000000002 ret func000000000000003e: # @func000000000000003e add a1, a1, a2 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func000000000000001e: # @func000000000000001e add a1, a1, a2 @@ -22,13 +22,13 @@ func000000000000001e: # @func000000000000001e ret func0000000000000032: # @func0000000000000032 add a1, a1, a2 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func000000000000001c: # @func000000000000001c add a1, a1, a2 + addi a1, a1, -1 sh3add a0, a1, a0 - addi a0, a0, -8 ret func0000000000000012: # @func0000000000000012 add a1, a1, a2 diff --git a/result/rvb23u64/38c0178b14219b8c.S b/result/rvb23u64/38c0178b14219b8c.S index b90311fe488..58d4985721a 100644 --- a/result/rvb23u64/38c0178b14219b8c.S +++ b/result/rvb23u64/38c0178b14219b8c.S @@ -1,15 +1,16 @@ func000000000000007a: # @func000000000000007a + slli a2, a2, 1 sext.w a1, a1 + addi a2, a2, 1 sh2add a0, a1, a0 - sh2add a0, a2, a0 - addi a0, a0, 2 + sh1add a0, a2, a0 ret func000000000000003a: # @func000000000000003a - slli a2, a2, 4 + slli a2, a2, 2 sext.w a1, a1 + addi a2, a2, 1 sh2add a0, a1, a0 - add a0, a0, a2 - addi a0, a0, 4 + sh2add a0, a2, a0 ret func0000000000000070: # @func0000000000000070 slli a2, a2, 4 diff --git a/result/rvb23u64/3953e9385700dda6.S b/result/rvb23u64/3953e9385700dda6.S index 0cb3bb4834d..94789cd6c2c 100644 --- a/result/rvb23u64/3953e9385700dda6.S +++ b/result/rvb23u64/3953e9385700dda6.S @@ -1,6 +1,5 @@ func000000000000007a: # @func000000000000007a - slli a1, a1, 1 - sh2add a1, a2, a1 - add a0, a0, a1 + sh1add a1, a2, a1 + sh1add a0, a1, a0 addi a0, a0, 1524 ret diff --git a/result/rvb23u64/39e5705d40f3ad55.S b/result/rvb23u64/39e5705d40f3ad55.S index 4e8b43dac4a..c19091063eb 100644 --- a/result/rvb23u64/39e5705d40f3ad55.S +++ b/result/rvb23u64/39e5705d40f3ad55.S @@ -1,24 +1,28 @@ func0000000000000038: # @func0000000000000038 - andi a1, a1, -4 - add a0, a0, a1 + srli a1, a1, 2 + addi a1, a1, 8 + sh2add a0, a1, a0 lui a1, 2 - addiw a1, a1, 1324 + addiw a1, a1, 1292 add a0, a0, a1 ret func0000000000000018: # @func0000000000000018 - andi a1, a1, -4 - add a0, a0, a1 + srli a1, a1, 2 + addi a1, a1, -271 + sh2add a0, a1, a0 lui a1, 5 - addiw a1, a1, -1740 + addiw a1, a1, -656 add a0, a0, a1 ret func0000000000000058: # @func0000000000000058 - srli a1, a1, 3 - add a0, a0, a1 - addi a0, a0, 16 + srli a1, a1, 6 + addi a1, a1, -1 + sh3add a0, a1, a0 + addi a0, a0, 24 ret func000000000000003a: # @func000000000000003a srli a1, a1, 6 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 24 + addi a0, a0, 16 ret diff --git a/result/rvb23u64/3e78cfbcf65f87db.S b/result/rvb23u64/3e78cfbcf65f87db.S index 8f85cb74a61..c2e1eea8b02 100644 --- a/result/rvb23u64/3e78cfbcf65f87db.S +++ b/result/rvb23u64/3e78cfbcf65f87db.S @@ -28,8 +28,9 @@ func000000000000000a: # @func000000000000000a addi a0, a0, 8 ret func000000000000003a: # @func000000000000003a + addi a1, a1, -2 sh3add a0, a1, a0 - addi a0, a0, -8 + addi a0, a0, 8 ret func0000000000000008: # @func0000000000000008 slli a1, a1, 4 @@ -73,8 +74,9 @@ func0000000000000022: # @func0000000000000022 addi a0, a0, 4 ret func0000000000000032: # @func0000000000000032 + addi a1, a1, -2 sh2add a0, a1, a0 - addi a0, a0, -4 + addi a0, a0, 4 ret func000000000000004a: # @func000000000000004a addi a1, a1, 1 diff --git a/result/rvb23u64/3e796f381067abc0.S b/result/rvb23u64/3e796f381067abc0.S index 3a44c9d7736..f87d6d0dc27 100644 --- a/result/rvb23u64/3e796f381067abc0.S +++ b/result/rvb23u64/3e796f381067abc0.S @@ -1,6 +1,8 @@ func000000000000001a: # @func000000000000001a andi a1, a1, 255 + addi a1, a1, -1 sh3add a0, a1, a0 + addi a0, a0, 8 ret func0000000000000038: # @func0000000000000038 andi a1, a1, 255 @@ -11,22 +13,27 @@ func0000000000000038: # @func0000000000000038 ret func000000000000003a: # @func000000000000003a andi a1, a1, 255 + addi a1, a1, 257 sh2add a0, a1, a0 - addi a0, a0, 1068 + addi a0, a0, 40 ret func000000000000001e: # @func000000000000001e andi a1, a1, 255 + addi a1, a1, -1 sh3add a0, a1, a0 - addi a0, a0, 112 + addi a0, a0, 120 ret func000000000000003e: # @func000000000000003e andi a1, a1, 255 + addi a1, a1, 257 sh2add a0, a1, a0 - addi a0, a0, 1060 + addi a0, a0, 32 ret func0000000000000018: # @func0000000000000018 andi a1, a1, 255 + addi a1, a1, -1 sh3add a0, a1, a0 + addi a0, a0, 8 ret func0000000000000058: # @func0000000000000058 andi a1, a1, 255 diff --git a/result/rvb23u64/3f521a921a9e4cc1.S b/result/rvb23u64/3f521a921a9e4cc1.S index 3bd736a171d..f46fe29b4e3 100644 --- a/result/rvb23u64/3f521a921a9e4cc1.S +++ b/result/rvb23u64/3f521a921a9e4cc1.S @@ -4,14 +4,14 @@ func0000000000000006: # @func0000000000000006 addi a0, a0, -1 ret func000000000000000c: # @func000000000000000c - andi a1, a1, -4 - add a0, a0, a1 - addi a0, a0, 32 + srli a1, a1, 2 + addi a1, a1, 8 + sh2add a0, a1, a0 ret func0000000000000004: # @func0000000000000004 - andi a1, a1, -4 - add a0, a0, a1 - addi a0, a0, -1084 + srli a1, a1, 2 + addi a1, a1, -271 + sh2add a0, a1, a0 ret func000000000000000e: # @func000000000000000e srli a1, a1, 3 @@ -19,16 +19,17 @@ func000000000000000e: # @func000000000000000e addi a0, a0, 1 ret func0000000000000016: # @func0000000000000016 - sh1add a0, a1, a0 - addi a0, a0, -4 + srli a1, a1, 1 + addi a1, a1, -1 + sh2add a0, a1, a0 ret func0000000000000014: # @func0000000000000014 - srli a1, a1, 3 - add a0, a0, a1 - addi a0, a0, -8 + srli a1, a1, 6 + addi a1, a1, -1 + sh3add a0, a1, a0 ret func000000000000001e: # @func000000000000001e - srli a1, a1, 3 - add a0, a0, a1 - addi a0, a0, 8 + srli a1, a1, 6 + addi a1, a1, 1 + sh3add a0, a1, a0 ret diff --git a/result/rvb23u64/3fa6347fe86a084d.S b/result/rvb23u64/3fa6347fe86a084d.S index af3dac0101a..08db7b3ea97 100644 --- a/result/rvb23u64/3fa6347fe86a084d.S +++ b/result/rvb23u64/3fa6347fe86a084d.S @@ -1,6 +1,7 @@ func000000000000003a: # @func000000000000003a + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 12 + addi a0, a0, 4 ret func0000000000000002: # @func0000000000000002 slli a2, a1, 3 @@ -50,8 +51,9 @@ func0000000000000000: # @func0000000000000000 addi a0, a0, -128 ret func0000000000000028: # @func0000000000000028 + addi a1, a1, 2 sh3add a0, a1, a0 - addi a0, a0, 20 + addi a0, a0, 4 ret func000000000000003b: # @func000000000000003b slli a1, a1, 4 @@ -59,10 +61,12 @@ func000000000000003b: # @func000000000000003b addi a0, a0, 20 ret func000000000000001b: # @func000000000000001b + addi a1, a1, -1 sh3add a0, a1, a0 - addi a0, a0, -4 + addi a0, a0, 4 ret func0000000000000010: # @func0000000000000010 + addi a1, a1, -1 sh3add a0, a1, a0 - addi a0, a0, -4 + addi a0, a0, 4 ret diff --git a/result/rvb23u64/40c0d7be77507356.S b/result/rvb23u64/40c0d7be77507356.S index a2052235af8..d3dccae7610 100644 --- a/result/rvb23u64/40c0d7be77507356.S +++ b/result/rvb23u64/40c0d7be77507356.S @@ -4,11 +4,7 @@ func000000000000000c: # @func000000000000000c sh2add a0, a1, a0 ret func000000000000000e: # @func000000000000000e - lui a2, 65535 - slli a2, a2, 4 - addi a2, a2, -256 - and a1, a1, a2 - srli a1, a1, 6 - add a0, a0, a1 - addi a0, a0, 1024 + srliw a1, a1, 8 + ori a1, a1, 256 + sh2add a0, a1, a0 ret diff --git a/result/rvb23u64/40d4fff7c0776f63.S b/result/rvb23u64/40d4fff7c0776f63.S index 46b1e4ed32c..e62f7accc19 100644 --- a/result/rvb23u64/40d4fff7c0776f63.S +++ b/result/rvb23u64/40d4fff7c0776f63.S @@ -1,8 +1,8 @@ func000000000000005a: # @func000000000000005a + addi a2, a2, 1 sh2add a0, a2, a0 slli a1, a1, 7 add a0, a0, a1 - addi a0, a0, 4 ret func0000000000000040: # @func0000000000000040 add a0, a0, a2 @@ -21,8 +21,8 @@ func0000000000000070: # @func0000000000000070 addi a0, a0, 4 ret func000000000000007a: # @func000000000000007a + addi a2, a2, 1 sh1add a0, a2, a0 slli a1, a1, 4 add a0, a0, a1 - addi a0, a0, 2 ret diff --git a/result/rvb23u64/41eb18bc03269343.S b/result/rvb23u64/41eb18bc03269343.S index d73e4ae6365..8bd3383564f 100644 --- a/result/rvb23u64/41eb18bc03269343.S +++ b/result/rvb23u64/41eb18bc03269343.S @@ -1,5 +1,5 @@ func00000000000000c4: # @func00000000000000c4 seqz a1, a1 + addi a1, a1, -1 sh3add a0, a1, a0 - addi a0, a0, -8 ret diff --git a/result/rvb23u64/42bdd84c3fe9efe2.S b/result/rvb23u64/42bdd84c3fe9efe2.S index fd8d1c2f0bd..5850809da6d 100644 --- a/result/rvb23u64/42bdd84c3fe9efe2.S +++ b/result/rvb23u64/42bdd84c3fe9efe2.S @@ -1,8 +1,8 @@ func000000000000001c: # @func000000000000001c andi a1, a1, 255 - slli a1, a1, 4 - add a0, a0, a1 - addi a0, a0, 8 + slli a1, a1, 1 + addi a1, a1, 1 + sh3add a0, a1, a0 ret func000000000000001e: # @func000000000000001e andi a1, a1, 255 diff --git a/result/rvb23u64/43c614176a4a2a84.S b/result/rvb23u64/43c614176a4a2a84.S index 361e773afe4..48e44735b5b 100644 --- a/result/rvb23u64/43c614176a4a2a84.S +++ b/result/rvb23u64/43c614176a4a2a84.S @@ -1,14 +1,14 @@ func000000000000001a: # @func000000000000001a + addi a2, a2, -1 slli a1, a1, 5 add a0, a0, a1 sh1add a0, a2, a0 - addi a0, a0, -2 ret func000000000000003a: # @func000000000000003a + addi a2, a2, 1 sh2add a1, a1, a1 sh3add a1, a1, a2 sh2add a0, a1, a0 - addi a0, a0, 4 ret func000000000000000a: # @func000000000000000a li a3, 102 diff --git a/result/rvb23u64/43da8f8f5f8cf777.S b/result/rvb23u64/43da8f8f5f8cf777.S index cde3fd6f93d..dda9dcd6b4e 100644 --- a/result/rvb23u64/43da8f8f5f8cf777.S +++ b/result/rvb23u64/43da8f8f5f8cf777.S @@ -5,7 +5,9 @@ func0000000000000008: # @func0000000000000008 ret func000000000000001a: # @func000000000000001a sext.w a1, a1 + addi a1, a1, -1 sh3add a0, a1, a0 + addi a0, a0, 8 ret func0000000000000018: # @func0000000000000018 sext.w a1, a1 @@ -15,8 +17,9 @@ func0000000000000018: # @func0000000000000018 ret func0000000000000038: # @func0000000000000038 sext.w a1, a1 + addi a1, a1, 1 sh3add a0, a1, a0 - li a1, 1028 + li a1, 1027 sh3add a0, a1, a0 ret func0000000000000028: # @func0000000000000028 @@ -32,8 +35,9 @@ func000000000000000a: # @func000000000000000a ret func000000000000003a: # @func000000000000003a sext.w a1, a1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 108 + addi a0, a0, 104 ret func000000000000001e: # @func000000000000001e sext.w a1, a1 @@ -55,7 +59,8 @@ func0000000000000000: # @func0000000000000000 ret func0000000000000010: # @func0000000000000010 sext.w a1, a1 + addi a1, a1, -1 sh1add a0, a1, a0 addi a0, a0, 2047 - addi a0, a0, 1149 + addi a0, a0, 1151 ret diff --git a/result/rvb23u64/44cbfe105c8e82e6.S b/result/rvb23u64/44cbfe105c8e82e6.S index 7ba1cae4d3b..5da219f9f50 100644 --- a/result/rvb23u64/44cbfe105c8e82e6.S +++ b/result/rvb23u64/44cbfe105c8e82e6.S @@ -1,6 +1,7 @@ func000000000000003a: # @func000000000000003a + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 48 + addi a0, a0, 40 ret func0000000000000008: # @func0000000000000008 slli a2, a1, 3 @@ -19,12 +20,14 @@ func000000000000000a: # @func000000000000000a addi a0, a0, 32 ret func0000000000000038: # @func0000000000000038 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 552 + addi a0, a0, 544 ret func0000000000000018: # @func0000000000000018 + addi a1, a1, -1 sh2add a0, a1, a0 - addi a0, a0, 10 + addi a0, a0, 14 ret func000000000000002a: # @func000000000000002a add a0, a0, a1 @@ -36,37 +39,44 @@ func0000000000000012: # @func0000000000000012 addi a0, a0, 48 ret func000000000000003f: # @func000000000000003f + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 56 + addi a0, a0, 48 ret func000000000000001f: # @func000000000000001f + addi a1, a1, -227 sh3add a0, a1, a0 - addi a0, a0, -1768 + addi a0, a0, 48 ret func0000000000000032: # @func0000000000000032 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 32 + addi a0, a0, 24 ret func0000000000000030: # @func0000000000000030 + addi a1, a1, 2 sh2add a0, a1, a0 lui a1, 12 - addiw a1, a1, 1028 + addiw a1, a1, 1020 add a0, a0, a1 ret func000000000000003e: # @func000000000000003e + addi a1, a1, 200 sh3add a0, a1, a0 lui a1, 97 - addiw a1, a1, 1160 + addiw a1, a1, -440 add a0, a0, a1 ret func000000000000001e: # @func000000000000001e + addi a1, a1, -48 sh3add a0, a1, a0 - addi a0, a0, -272 + addi a0, a0, 112 ret func000000000000000e: # @func000000000000000e + addi a1, a1, -1 sh3add a0, a1, a0 lui a1, 105 - addiw a1, a1, 1712 + addiw a1, a1, 1720 add a0, a0, a1 ret func0000000000000010: # @func0000000000000010 @@ -89,6 +99,7 @@ func0000000000000020: # @func0000000000000020 addi a0, a0, 39 ret func0000000000000000: # @func0000000000000000 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 16 + addi a0, a0, 8 ret diff --git a/result/rvb23u64/459ddc642f46a501.S b/result/rvb23u64/459ddc642f46a501.S index 7a1bbe9127a..75d0524e45d 100644 --- a/result/rvb23u64/459ddc642f46a501.S +++ b/result/rvb23u64/459ddc642f46a501.S @@ -25,8 +25,8 @@ func0000000000000000: # @func0000000000000000 func0000000000000076: # @func0000000000000076 sext.w a2, a2 sub a1, a1, a2 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func0000000000000034: # @func0000000000000034 zext.w a2, a2 diff --git a/result/rvb23u64/46174941fe38c88d.S b/result/rvb23u64/46174941fe38c88d.S index 05acb0b5fdf..7a01c1cb4d2 100644 --- a/result/rvb23u64/46174941fe38c88d.S +++ b/result/rvb23u64/46174941fe38c88d.S @@ -1,10 +1,10 @@ func000000000000003e: # @func000000000000003e add.uw a1, a2, a1 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func0000000000000032: # @func0000000000000032 add.uw a1, a2, a1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret diff --git a/result/rvb23u64/46934a9779dfacbc.S b/result/rvb23u64/46934a9779dfacbc.S index ddca99943c0..b431a0dcaa6 100644 --- a/result/rvb23u64/46934a9779dfacbc.S +++ b/result/rvb23u64/46934a9779dfacbc.S @@ -1,9 +1,9 @@ func00000000000001aa: # @func00000000000001aa srli a3, a1, 3 sub a2, a2, a3 + addi a2, a2, 1 add a0, a0, a1 sh3add a0, a2, a0 - addi a0, a0, 8 ret func00000000000001fa: # @func00000000000001fa srli a3, a1, 3 @@ -15,9 +15,9 @@ func00000000000001fa: # @func00000000000001fa func000000000000012a: # @func000000000000012a srli a3, a1, 3 sub a2, a2, a3 + addi a2, a2, 1 add a0, a0, a1 sh3add a0, a2, a0 - addi a0, a0, 8 ret func000000000000017a: # @func000000000000017a add a0, a0, a1 @@ -29,9 +29,9 @@ func000000000000017a: # @func000000000000017a func000000000000012f: # @func000000000000012f srli a3, a1, 3 sub a2, a2, a3 + addi a2, a2, 1 add a0, a0, a1 sh3add a0, a2, a0 - addi a0, a0, 8 ret func00000000000001ea: # @func00000000000001ea srli a3, a1, 6 @@ -44,7 +44,7 @@ func00000000000001ea: # @func00000000000001ea func000000000000016a: # @func000000000000016a srli a3, a1, 3 sub a2, a2, a3 + addi a2, a2, 1 add a0, a0, a1 sh3add a0, a2, a0 - addi a0, a0, 8 ret diff --git a/result/rvb23u64/46b34e7ce5d66182.S b/result/rvb23u64/46b34e7ce5d66182.S index 948a1c55de0..a422f0246b9 100644 --- a/result/rvb23u64/46b34e7ce5d66182.S +++ b/result/rvb23u64/46b34e7ce5d66182.S @@ -1,6 +1,6 @@ func000000000000003e: # @func000000000000003e andi a2, a2, 255 add.uw a1, a1, a2 + addi a1, a1, 2 sh2add a0, a1, a0 - addi a0, a0, 8 ret diff --git a/result/rvb23u64/47d9b735300ba2b8.S b/result/rvb23u64/47d9b735300ba2b8.S index be7f134c03e..8e26abed18a 100644 --- a/result/rvb23u64/47d9b735300ba2b8.S +++ b/result/rvb23u64/47d9b735300ba2b8.S @@ -1,6 +1,6 @@ func0000000000000012: # @func0000000000000012 sext.h a2, a2 add a1, a1, a2 + addi a1, a1, -1 sh2add a0, a1, a0 - addi a0, a0, -4 ret diff --git a/result/rvb23u64/489b3022e5698358.S b/result/rvb23u64/489b3022e5698358.S index 202f1052f04..7c1d18df7e4 100644 --- a/result/rvb23u64/489b3022e5698358.S +++ b/result/rvb23u64/489b3022e5698358.S @@ -1,20 +1,20 @@ func000000000000002e: # @func000000000000002e - srai a1, a1, 1 - add a0, a0, a1 - addi a0, a0, -4 + srai a1, a1, 2 + addi a1, a1, -2 + sh1add a0, a1, a0 ret func000000000000000e: # @func000000000000000e srai a1, a1, 3 + addi a1, a1, -2 sh2add a0, a1, a0 - addi a0, a0, -8 ret func000000000000000c: # @func000000000000000c srai a1, a1, 3 + addi a1, a1, -2 sh2add a0, a1, a0 - addi a0, a0, -8 ret func000000000000002c: # @func000000000000002c - srai a1, a1, 1 - add a0, a0, a1 - addi a0, a0, -16 + srai a1, a1, 4 + addi a1, a1, -2 + sh3add a0, a1, a0 ret diff --git a/result/rvb23u64/4c880a8e3e18adac.S b/result/rvb23u64/4c880a8e3e18adac.S index bf7585b57b0..347474bb8b4 100644 --- a/result/rvb23u64/4c880a8e3e18adac.S +++ b/result/rvb23u64/4c880a8e3e18adac.S @@ -1,10 +1,9 @@ func0000000000000006: # @func0000000000000006 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func0000000000000004: # @func0000000000000004 + li a2, 1488 + sh2add a1, a2, a1 sh2add a0, a1, a0 - lui a1, 6 - addiw a1, a1, -768 - add a0, a0, a1 ret diff --git a/result/rvb23u64/4ca099aaea0dbfab.S b/result/rvb23u64/4ca099aaea0dbfab.S index ef9a6590816..f172b7cded0 100644 --- a/result/rvb23u64/4ca099aaea0dbfab.S +++ b/result/rvb23u64/4ca099aaea0dbfab.S @@ -1,6 +1,6 @@ func000000000000000e: # @func000000000000000e sh1add a1, a1, a1 slliw a1, a1, 1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret diff --git a/result/rvb23u64/4e2874a77a86dfbc.S b/result/rvb23u64/4e2874a77a86dfbc.S index 69506c9a18c..db7d6d65934 100644 --- a/result/rvb23u64/4e2874a77a86dfbc.S +++ b/result/rvb23u64/4e2874a77a86dfbc.S @@ -1,8 +1,8 @@ func000000000000001a: # @func000000000000001a sh1add a2, a2, a2 add a0, a0, a2 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func0000000000000010: # @func0000000000000010 sh1add a2, a2, a2 @@ -15,12 +15,12 @@ func000000000000007a: # @func000000000000007a li a3, 544 mul a2, a2, a3 add a0, a0, a2 + addi a1, a1, 4 sh2add a0, a1, a0 - addi a0, a0, 16 ret func000000000000003a: # @func000000000000003a slli a2, a2, 1 sub a0, a0, a2 + addi a1, a1, 1 sh1add a0, a1, a0 - addi a0, a0, 2 ret diff --git a/result/rvb23u64/4e42ce2a4630fd9b.S b/result/rvb23u64/4e42ce2a4630fd9b.S index 2393b70a6d6..0f0d2166217 100644 --- a/result/rvb23u64/4e42ce2a4630fd9b.S +++ b/result/rvb23u64/4e42ce2a4630fd9b.S @@ -1,6 +1,8 @@ func000000000000001a: # @func000000000000001a - sh3add.uw a0, a1, a0 - addi a0, a0, -40 + zext.w a1, a1 + addi a1, a1, -1 + sh3add a0, a1, a0 + addi a0, a0, -32 ret func000000000000007a: # @func000000000000007a sext.w a1, a1 @@ -20,8 +22,9 @@ func000000000000005e: # @func000000000000005e ret func000000000000005a: # @func000000000000005a sext.w a1, a1 + addi a1, a1, -1 sh3add a0, a1, a0 - addi a0, a0, 40 + addi a0, a0, 48 ret func0000000000000058: # @func0000000000000058 sext.w a1, a1 diff --git a/result/rvb23u64/525328638b187211.S b/result/rvb23u64/525328638b187211.S index 3af936b91e4..fda5c4c4698 100644 --- a/result/rvb23u64/525328638b187211.S +++ b/result/rvb23u64/525328638b187211.S @@ -10,6 +10,6 @@ func000000000000003e: # @func000000000000003e ret func000000000000007e: # @func000000000000007e slliw a1, a1, 1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret diff --git a/result/rvb23u64/532e24ad5a8d100a.S b/result/rvb23u64/532e24ad5a8d100a.S index fc386e8426f..efbe76c2b2f 100644 --- a/result/rvb23u64/532e24ad5a8d100a.S +++ b/result/rvb23u64/532e24ad5a8d100a.S @@ -6,14 +6,16 @@ func00000000000000aa: # @func00000000000000aa addi a0, a0, 8 ret func00000000000000ba: # @func00000000000000ba - srai a1, a1, 1 - add a0, a0, a1 - addi a0, a0, -8 + srai a1, a1, 4 + addi a1, a1, -2 + sh3add a0, a1, a0 + addi a0, a0, 8 ret func00000000000000bb: # @func00000000000000bb - srai a1, a1, 1 - add a0, a0, a1 - addi a0, a0, -8 + srai a1, a1, 4 + addi a1, a1, -2 + sh3add a0, a1, a0 + addi a0, a0, 8 ret func00000000000000ab: # @func00000000000000ab srai a1, a1, 1 @@ -23,7 +25,8 @@ func00000000000000ab: # @func00000000000000ab addi a0, a0, 8 ret func00000000000000b2: # @func00000000000000b2 - srai a1, a1, 1 - add a0, a0, a1 - addi a0, a0, -4 + srai a1, a1, 3 + addi a1, a1, -2 + sh2add a0, a1, a0 + addi a0, a0, 4 ret diff --git a/result/rvb23u64/5398d10528673bb3.S b/result/rvb23u64/5398d10528673bb3.S index 6c6a971f52a..be25b1d68b3 100644 --- a/result/rvb23u64/5398d10528673bb3.S +++ b/result/rvb23u64/5398d10528673bb3.S @@ -11,9 +11,10 @@ func0000000000000032: # @func0000000000000032 ret func0000000000000078: # @func0000000000000078 andi a1, a1, 31 + addi a1, a1, 2 sh2add a0, a1, a0 addi a0, a0, 2047 - addi a0, a0, 1829 + addi a0, a0, 1821 ret func0000000000000038: # @func0000000000000038 andi a1, a1, 255 diff --git a/result/rvb23u64/549e403664d12d93.S b/result/rvb23u64/549e403664d12d93.S index b47a3075fbc..c1aa57eee35 100644 --- a/result/rvb23u64/549e403664d12d93.S +++ b/result/rvb23u64/549e403664d12d93.S @@ -10,8 +10,8 @@ func0000000000000000: # @func0000000000000000 ret func0000000000000020: # @func0000000000000020 sub a2, a2, a1 + addi a2, a2, 3 sh2add a0, a2, a0 - addi a0, a0, 12 ret func0000000000000023: # @func0000000000000023 sub a2, a2, a1 diff --git a/result/rvb23u64/571e8eb8c6d924a2.S b/result/rvb23u64/571e8eb8c6d924a2.S index 7983682a177..700feb585cf 100644 --- a/result/rvb23u64/571e8eb8c6d924a2.S +++ b/result/rvb23u64/571e8eb8c6d924a2.S @@ -5,9 +5,9 @@ func000000000000002a: # @func000000000000002a add a0, a0, a1 ret func000000000000002e: # @func000000000000002e - srai a1, a1, 1 - add a0, a0, a1 - addi a0, a0, -4 + srai a1, a1, 2 + addi a1, a1, -2 + sh1add a0, a1, a0 ret func000000000000000a: # @func000000000000000a srai a1, a1, 4 @@ -23,9 +23,9 @@ func000000000000002b: # @func000000000000002b sh3add a0, a1, a0 ret func000000000000002c: # @func000000000000002c - srai a1, a1, 1 - add a0, a0, a1 - addi a0, a0, -4 + srai a1, a1, 2 + addi a1, a1, -2 + sh1add a0, a1, a0 ret func0000000000000028: # @func0000000000000028 srai a1, a1, 1 diff --git a/result/rvb23u64/576382b5566ebe58.S b/result/rvb23u64/576382b5566ebe58.S index 0875213ed66..1339be3a828 100644 --- a/result/rvb23u64/576382b5566ebe58.S +++ b/result/rvb23u64/576382b5566ebe58.S @@ -13,10 +13,8 @@ func0000000000000014: # @func0000000000000014 addi a0, a0, -2 ret func0000000000000016: # @func0000000000000016 - not a2, a2 - slli a2, a2, 2 - lui a3, 524288 - or a2, a2, a3 - add a0, a0, a2 + lui a3, 917504 + orn a2, a3, a2 + sh2add a0, a2, a0 sh2add a0, a1, a0 ret diff --git a/result/rvb23u64/585e8f8b6ec045e8.S b/result/rvb23u64/585e8f8b6ec045e8.S index 6e915076d2d..67d80ae1bc7 100644 --- a/result/rvb23u64/585e8f8b6ec045e8.S +++ b/result/rvb23u64/585e8f8b6ec045e8.S @@ -5,6 +5,6 @@ func0000000000000004: # @func0000000000000004 ret func0000000000000006: # @func0000000000000006 sext.w a1, a1 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret diff --git a/result/rvb23u64/596466d7381a69d6.S b/result/rvb23u64/596466d7381a69d6.S index ecd267c5e81..839a2bfa42c 100644 --- a/result/rvb23u64/596466d7381a69d6.S +++ b/result/rvb23u64/596466d7381a69d6.S @@ -1,7 +1,7 @@ func0000000000000006: # @func0000000000000006 - slli a1, a1, 4 - add a0, a0, a1 - addi a0, a0, 8 + slli a1, a1, 1 + addi a1, a1, 1 + sh3add a0, a1, a0 ret func000000000000000e: # @func000000000000000e slli a1, a1, 5 @@ -9,12 +9,12 @@ func000000000000000e: # @func000000000000000e addi a0, a0, 16 ret func0000000000000004: # @func0000000000000004 - slli a1, a1, 4 - add a0, a0, a1 - addi a0, a0, 8 + slli a1, a1, 1 + addi a1, a1, 1 + sh3add a0, a1, a0 ret func000000000000000c: # @func000000000000000c - slli a1, a1, 4 - add a0, a0, a1 - addi a0, a0, 8 + slli a1, a1, 1 + addi a1, a1, 1 + sh3add a0, a1, a0 ret diff --git a/result/rvb23u64/5ba5972d2cd3363f.S b/result/rvb23u64/5ba5972d2cd3363f.S index ad5ccebd8d6..6835eb68ab6 100644 --- a/result/rvb23u64/5ba5972d2cd3363f.S +++ b/result/rvb23u64/5ba5972d2cd3363f.S @@ -1,7 +1,8 @@ func0000000000000008: # @func0000000000000008 add a0, a0, a1 + addi a0, a0, 1 slli a0, a0, 2 - addi a0, a0, 11 + addi a0, a0, 7 ret func0000000000000000: # @func0000000000000000 add a0, a0, a1 @@ -12,8 +13,9 @@ func0000000000000000: # @func0000000000000000 ret func0000000000000005: # @func0000000000000005 add a0, a0, a1 + addi a0, a0, 3 slli a0, a0, 1 - addi a0, a0, 8 + addi a0, a0, 2 ret func0000000000000080: # @func0000000000000080 add a0, a0, a1 @@ -25,13 +27,15 @@ func0000000000000080: # @func0000000000000080 ret func00000000000000c0: # @func00000000000000c0 add a0, a0, a1 + addi a0, a0, 1 slli a0, a0, 3 - addi a0, a0, 48 + addi a0, a0, 40 ret func000000000000005d: # @func000000000000005d add a0, a0, a1 + addi a0, a0, 2 slli a0, a0, 2 - addi a0, a0, 4 + addi a0, a0, -4 ret func0000000000000040: # @func0000000000000040 add a0, a0, a1 @@ -56,6 +60,7 @@ func0000000000000055: # @func0000000000000055 ret func00000000000000dd: # @func00000000000000dd add a0, a0, a1 + addi a0, a0, 3 slli a0, a0, 3 - addi a0, a0, 16 + addi a0, a0, -8 ret diff --git a/result/rvb23u64/5bdfaebfab418ddb.S b/result/rvb23u64/5bdfaebfab418ddb.S index 0a37225d575..67a8c3fb9cb 100644 --- a/result/rvb23u64/5bdfaebfab418ddb.S +++ b/result/rvb23u64/5bdfaebfab418ddb.S @@ -1,15 +1,18 @@ func0000000000000155: # @func0000000000000155 add a1, a1, a2 + addi a1, a1, -48 sh3add a0, a1, a0 - addiw a0, a0, -432 + addiw a0, a0, -48 ret func0000000000000000: # @func0000000000000000 add a1, a1, a2 + addi a1, a1, 1 sh3add a0, a1, a0 - addiw a0, a0, -8 + addiw a0, a0, -16 ret func0000000000000175: # @func0000000000000175 add a1, a1, a2 + addi a1, a1, -48 sh3add a0, a1, a0 - addiw a0, a0, -432 + addiw a0, a0, -48 ret diff --git a/result/rvb23u64/5e5718b167bc40ea.S b/result/rvb23u64/5e5718b167bc40ea.S index 731847e90c8..86699e8a7fa 100644 --- a/result/rvb23u64/5e5718b167bc40ea.S +++ b/result/rvb23u64/5e5718b167bc40ea.S @@ -7,6 +7,6 @@ func0000000000000004: # @func0000000000000004 ret func0000000000000006: # @func0000000000000006 sext.h a1, a1 + addi a1, a1, -1 sh2add a0, a1, a0 - addi a0, a0, -4 ret diff --git a/result/rvb23u64/5f6fb7908a91e29d.S b/result/rvb23u64/5f6fb7908a91e29d.S index 6681ba1fcd5..16a2bee6ca6 100644 --- a/result/rvb23u64/5f6fb7908a91e29d.S +++ b/result/rvb23u64/5f6fb7908a91e29d.S @@ -1,7 +1,8 @@ func0000000000000070: # @func0000000000000070 slliw a1, a1, 2 + addi a1, a1, 2 sh1add a0, a1, a0 - addi a0, a0, 6 + addi a0, a0, 2 ret func000000000000002b: # @func000000000000002b slli a1, a1, 1 diff --git a/result/rvb23u64/62d713b4c404c16d.S b/result/rvb23u64/62d713b4c404c16d.S index aa6609869ce..653bc1bd2a2 100644 --- a/result/rvb23u64/62d713b4c404c16d.S +++ b/result/rvb23u64/62d713b4c404c16d.S @@ -19,8 +19,9 @@ func0000000000000040: # @func0000000000000040 ret func000000000000005a: # @func000000000000005a sub a1, a1, a2 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 24 + addi a0, a0, 16 ret func000000000000000a: # @func000000000000000a sub a1, a1, a2 diff --git a/result/rvb23u64/62dd316403cb357a.S b/result/rvb23u64/62dd316403cb357a.S index 80f456b8828..edf52fd1212 100644 --- a/result/rvb23u64/62dd316403cb357a.S +++ b/result/rvb23u64/62dd316403cb357a.S @@ -1,12 +1,10 @@ func000000000000000e: # @func000000000000000e mulw a1, a1, a2 - slli a1, a1, 3 - ori a1, a1, 8 - add a0, a0, a1 + ori a1, a1, 1 + sh3add a0, a1, a0 ret func0000000000000006: # @func0000000000000006 mulw a1, a1, a2 - slli a1, a1, 2 - ori a1, a1, 4 - add a0, a0, a1 + ori a1, a1, 1 + sh2add a0, a1, a0 ret diff --git a/result/rvb23u64/6316227d3438cc8f.S b/result/rvb23u64/6316227d3438cc8f.S index 10303953489..5bc94c18d3c 100644 --- a/result/rvb23u64/6316227d3438cc8f.S +++ b/result/rvb23u64/6316227d3438cc8f.S @@ -3,8 +3,8 @@ func0000000000000006: # @func0000000000000006 li a3, 8 czero.nez a2, a3, a2 add a1, a1, a2 + addi a1, a1, 8 sh3add a0, a1, a0 - addi a0, a0, 64 ret func0000000000000004: # @func0000000000000004 andi a2, a2, 1 diff --git a/result/rvb23u64/640a98b314b8795c.S b/result/rvb23u64/640a98b314b8795c.S index 5ec8ee7a1d0..cc683ab102b 100644 --- a/result/rvb23u64/640a98b314b8795c.S +++ b/result/rvb23u64/640a98b314b8795c.S @@ -1,24 +1,24 @@ func000000000000003a: # @func000000000000003a slliw a2, a2, 1 + addi a2, a2, 1 sh2add a0, a1, a0 sh2add a0, a2, a0 - addi a0, a0, 4 ret func000000000000001a: # @func000000000000001a slliw a2, a2, 1 + addi a2, a2, 1 sh2add a0, a1, a0 sh2add a0, a2, a0 - addi a0, a0, 4 ret func0000000000000010: # @func0000000000000010 slliw a2, a2, 1 + addi a2, a2, 1 sh2add a0, a1, a0 sh2add a0, a2, a0 - addi a0, a0, 4 ret func0000000000000038: # @func0000000000000038 slliw a2, a2, 1 + addi a2, a2, 1 sh3add a0, a1, a0 sh3add a0, a2, a0 - addi a0, a0, 8 ret diff --git a/result/rvb23u64/656e12b0f7d2f51b.S b/result/rvb23u64/656e12b0f7d2f51b.S index 73ce5c16805..50a9135a485 100644 --- a/result/rvb23u64/656e12b0f7d2f51b.S +++ b/result/rvb23u64/656e12b0f7d2f51b.S @@ -1,18 +1,21 @@ func0000000000000155: # @func0000000000000155 andi a1, a1, 255 add a0, a0, a1 + addi a0, a0, -48 slli a0, a0, 3 - addiw a0, a0, -432 + addiw a0, a0, -48 ret func0000000000000000: # @func0000000000000000 andi a1, a1, 255 add a0, a0, a1 + addi a0, a0, 3 slli a0, a0, 3 - addiw a0, a0, 16 + addiw a0, a0, -8 ret func000000000000015d: # @func000000000000015d andi a1, a1, 255 add a0, a0, a1 + addi a0, a0, -48 slli a0, a0, 3 - addiw a0, a0, -432 + addiw a0, a0, -48 ret diff --git a/result/rvb23u64/67ddda1badc4e3b4.S b/result/rvb23u64/67ddda1badc4e3b4.S index a4a87f75e00..18b3baf4b62 100644 --- a/result/rvb23u64/67ddda1badc4e3b4.S +++ b/result/rvb23u64/67ddda1badc4e3b4.S @@ -1,7 +1,9 @@ func000000000000006a: # @func000000000000006a sext.w a2, a2 + addi a2, a2, -1 add a0, a0, a1 sh2add a0, a2, a0 + addi a0, a0, 4 ret func0000000000000008: # @func0000000000000008 addiw a2, a2, -1 diff --git a/result/rvb23u64/68156f4e7b1f8e7d.S b/result/rvb23u64/68156f4e7b1f8e7d.S index d9763049b64..4acd7b6dacd 100644 --- a/result/rvb23u64/68156f4e7b1f8e7d.S +++ b/result/rvb23u64/68156f4e7b1f8e7d.S @@ -1,13 +1,12 @@ func000000000000003c: # @func000000000000003c slliw a1, a1, 1 - slli a1, a1, 2 - ori a1, a1, 1792 - add a0, a0, a1 + ori a1, a1, 448 + sh2add a0, a1, a0 ret func000000000000003e: # @func000000000000003e slliw a1, a1, 1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func000000000000000a: # @func000000000000000a slli a1, a1, 3 diff --git a/result/rvb23u64/6b1bdd8c5550c8b1.S b/result/rvb23u64/6b1bdd8c5550c8b1.S index 554f5d48364..93eed3ce5c9 100644 --- a/result/rvb23u64/6b1bdd8c5550c8b1.S +++ b/result/rvb23u64/6b1bdd8c5550c8b1.S @@ -6,12 +6,14 @@ func0000000000000042: # @func0000000000000042 addi a0, a0, 8 ret func0000000000000040: # @func0000000000000040 + addi a2, a2, 2 sh1add a0, a1, a0 sh1add a0, a2, a0 - addi a0, a0, 6 + addi a0, a0, 2 ret func000000000000006a: # @func000000000000006a + addi a2, a2, 4 sh2add a0, a1, a0 sh2add a0, a2, a0 - addi a0, a0, 12 + addi a0, a0, -4 ret diff --git a/result/rvb23u64/6b9117cc3b92d15d.S b/result/rvb23u64/6b9117cc3b92d15d.S index 153a9ceafd2..36bafb463ee 100644 --- a/result/rvb23u64/6b9117cc3b92d15d.S +++ b/result/rvb23u64/6b9117cc3b92d15d.S @@ -11,9 +11,8 @@ func000000000000005a: # @func000000000000005a addi a0, a0, 1 ret func000000000000001a: # @func000000000000001a - slli a1, a1, 2 - sh3add a1, a2, a1 - add a0, a0, a1 + sh1add a1, a2, a1 + sh2add a0, a1, a0 addi a0, a0, -8 ret func0000000000000070: # @func0000000000000070 @@ -34,14 +33,13 @@ func0000000000000078: # @func0000000000000078 addi a0, a0, 1 ret func0000000000000038: # @func0000000000000038 - slli a2, a2, 5 - sh2add a1, a1, a2 - add a0, a0, a1 + sh3add a1, a2, a1 + sh2add a0, a1, a0 addi a0, a0, 4 ret func000000000000003a: # @func000000000000003a - slli a2, a2, 7 - sh1add a1, a1, a2 - add a0, a0, a1 + slli a2, a2, 6 + or a1, a1, a2 + sh1add a0, a1, a0 addi a0, a0, 2 ret diff --git a/result/rvb23u64/6c54fa0326c177ca.S b/result/rvb23u64/6c54fa0326c177ca.S index 433c3fd1f21..af751d947bc 100644 --- a/result/rvb23u64/6c54fa0326c177ca.S +++ b/result/rvb23u64/6c54fa0326c177ca.S @@ -1,22 +1,22 @@ func0000000000000006: # @func0000000000000006 zext.h a1, a1 + addi a1, a1, -1 sh3add a0, a1, a0 - addi a0, a0, -8 ret func0000000000000004: # @func0000000000000004 zext.h a1, a1 + addi a1, a1, -1 sh1add a0, a1, a0 - addi a0, a0, -2 ret func000000000000000e: # @func000000000000000e zext.h a1, a1 + addi a1, a1, 256 sh1add a0, a1, a0 - addi a0, a0, 512 ret func0000000000000014: # @func0000000000000014 zext.h a1, a1 + addi a1, a1, -1 sh2add a0, a1, a0 - addi a0, a0, -4 ret func000000000000000c: # @func000000000000000c zext.h a1, a1 @@ -25,6 +25,6 @@ func000000000000000c: # @func000000000000000c ret func0000000000000016: # @func0000000000000016 zext.h a1, a1 + addi a1, a1, -65 sh3add a0, a1, a0 - addi a0, a0, -520 ret diff --git a/result/rvb23u64/6c610667cc94f0d0.S b/result/rvb23u64/6c610667cc94f0d0.S index 58e8c0a2f64..b1fcdd5d7e1 100644 --- a/result/rvb23u64/6c610667cc94f0d0.S +++ b/result/rvb23u64/6c610667cc94f0d0.S @@ -1,8 +1,8 @@ func0000000000000006: # @func0000000000000006 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func0000000000000004: # @func0000000000000004 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret diff --git a/result/rvb23u64/6d43279510484c4e.S b/result/rvb23u64/6d43279510484c4e.S index 6dc2f55c929..50c6064d1be 100644 --- a/result/rvb23u64/6d43279510484c4e.S +++ b/result/rvb23u64/6d43279510484c4e.S @@ -1,7 +1,7 @@ func0000000000000016: # @func0000000000000016 slliw a1, a1, 1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func0000000000000010: # @func0000000000000010 slli a1, a1, 1 @@ -10,11 +10,11 @@ func0000000000000010: # @func0000000000000010 ret func0000000000000006: # @func0000000000000006 slliw a1, a1, 1 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func0000000000000004: # @func0000000000000004 slliw a1, a1, 1 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret diff --git a/result/rvb23u64/6eabc65aea89bb82.S b/result/rvb23u64/6eabc65aea89bb82.S index 35fba01af19..8c2e5be79c8 100644 --- a/result/rvb23u64/6eabc65aea89bb82.S +++ b/result/rvb23u64/6eabc65aea89bb82.S @@ -9,16 +9,18 @@ func00000000000000da: # @func00000000000000da addi a0, a0, 1 ret func00000000000000f2: # @func00000000000000f2 + slli a2, a2, 2 sext.w a1, a1 + addi a2, a2, 1 sh1add a0, a1, a0 - sh3add a0, a2, a0 - addi a0, a0, 2 + sh1add a0, a2, a0 ret func00000000000000f0: # @func00000000000000f0 + slli a2, a2, 2 sext.w a1, a1 + addi a2, a2, 2 sh1add a0, a1, a0 - sh3add a0, a2, a0 - addi a0, a0, 4 + sh1add a0, a2, a0 ret func00000000000000fa: # @func00000000000000fa slli a2, a2, 5 @@ -28,9 +30,9 @@ func00000000000000fa: # @func00000000000000fa addi a0, a0, 16 ret func0000000000000072: # @func0000000000000072 - slli a2, a2, 5 + slli a2, a2, 2 sext.w a1, a1 + addi a2, a2, 1 sh3add a0, a1, a0 - add a0, a0, a2 - addi a0, a0, 8 + sh3add a0, a2, a0 ret diff --git a/result/rvb23u64/6f62c7ca2820b49c.S b/result/rvb23u64/6f62c7ca2820b49c.S index e2e656aa56a..6c829973215 100644 --- a/result/rvb23u64/6f62c7ca2820b49c.S +++ b/result/rvb23u64/6f62c7ca2820b49c.S @@ -15,8 +15,9 @@ func000000000000001a: # @func000000000000001a addi a0, a0, -1 ret func0000000000000038: # @func0000000000000038 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 194 + addi a0, a0, 190 ret func000000000000000a: # @func000000000000000a sh1add a1, a1, a1 diff --git a/result/rvb23u64/7082fe81e97af96a.S b/result/rvb23u64/7082fe81e97af96a.S index a1144aae3d0..7546f26bbac 100644 --- a/result/rvb23u64/7082fe81e97af96a.S +++ b/result/rvb23u64/7082fe81e97af96a.S @@ -1,7 +1,7 @@ func000000000000002e: # @func000000000000002e - srai a1, a1, 1 - add a0, a0, a1 - addi a0, a0, -4 + srai a1, a1, 2 + addi a1, a1, -2 + sh1add a0, a1, a0 ret func000000000000002a: # @func000000000000002a srai a1, a1, 1 @@ -17,7 +17,7 @@ func000000000000000a: # @func000000000000000a add a0, a0, a1 ret func000000000000002c: # @func000000000000002c - srai a1, a1, 1 - add a0, a0, a1 - addi a0, a0, -4 + srai a1, a1, 2 + addi a1, a1, -2 + sh1add a0, a1, a0 ret diff --git a/result/rvb23u64/7295e04d22cae3ad.S b/result/rvb23u64/7295e04d22cae3ad.S index d54a2c97279..62033ce2474 100644 --- a/result/rvb23u64/7295e04d22cae3ad.S +++ b/result/rvb23u64/7295e04d22cae3ad.S @@ -1,4 +1,5 @@ func000000000000000a: # @func000000000000000a + addi a1, a1, -1 sh3add a0, a1, a0 - addi a0, a0, 8 + addi a0, a0, 16 ret diff --git a/result/rvb23u64/72af7e051ddd82fc.S b/result/rvb23u64/72af7e051ddd82fc.S index 7ddc02c7a9e..8a5513a3b64 100644 --- a/result/rvb23u64/72af7e051ddd82fc.S +++ b/result/rvb23u64/72af7e051ddd82fc.S @@ -1,8 +1,8 @@ func000000000000001c: # @func000000000000001c andi a2, a2, 255 - slli a2, a2, 19 - sh3add a1, a1, a2 - add a0, a0, a1 + slli a2, a2, 16 + or a1, a1, a2 + sh3add a0, a1, a0 ret func000000000000001e: # @func000000000000001e andi a2, a2, 255 diff --git a/result/rvb23u64/7377e457864e53c1.S b/result/rvb23u64/7377e457864e53c1.S index 4e14722499e..8283d4ea17c 100644 --- a/result/rvb23u64/7377e457864e53c1.S +++ b/result/rvb23u64/7377e457864e53c1.S @@ -7,6 +7,6 @@ func0000000000000002: # @func0000000000000002 add a0, a0, a1 ret func0000000000000004: # @func0000000000000004 + addi a1, a1, 12 sh3add a0, a1, a0 - addi a0, a0, 96 ret diff --git a/result/rvb23u64/75d76ffaf1ca3f8e.S b/result/rvb23u64/75d76ffaf1ca3f8e.S index ddd7d033cfc..5ccc050bbb0 100644 --- a/result/rvb23u64/75d76ffaf1ca3f8e.S +++ b/result/rvb23u64/75d76ffaf1ca3f8e.S @@ -1,12 +1,12 @@ func000000000000000e: # @func000000000000000e or a1, a1, a2 + addi a1, a1, 256 sh2add a0, a1, a0 - addi a0, a0, 1024 ret func000000000000000c: # @func000000000000000c or a1, a1, a2 + addi a1, a1, 16 sh2add a0, a1, a0 - addi a0, a0, 64 ret func0000000000000006: # @func0000000000000006 or a1, a1, a2 diff --git a/result/rvb23u64/76f4e8a7b72b01e2.S b/result/rvb23u64/76f4e8a7b72b01e2.S index 692595525bf..37e8ea6ece3 100644 --- a/result/rvb23u64/76f4e8a7b72b01e2.S +++ b/result/rvb23u64/76f4e8a7b72b01e2.S @@ -5,8 +5,8 @@ func0000000000000016: # @func0000000000000016 ret func0000000000000006: # @func0000000000000006 addw a1, a1, a2 + addi a1, a1, -1 sh1add a0, a1, a0 - addi a0, a0, -2 ret func0000000000000000: # @func0000000000000000 add a1, a1, a2 diff --git a/result/rvb23u64/773316f8c5d112c9.S b/result/rvb23u64/773316f8c5d112c9.S index 2405b3aa558..29c32dcb3e2 100644 --- a/result/rvb23u64/773316f8c5d112c9.S +++ b/result/rvb23u64/773316f8c5d112c9.S @@ -7,9 +7,9 @@ func000000000000002a: # @func000000000000002a ret func000000000000002e: # @func000000000000002e sub a1, a1, a2 - srai a1, a1, 1 - add a0, a0, a1 - addi a0, a0, -16 + srai a1, a1, 4 + addi a1, a1, -2 + sh3add a0, a1, a0 ret func000000000000002b: # @func000000000000002b sub a1, a1, a2 @@ -20,9 +20,9 @@ func000000000000002b: # @func000000000000002b ret func000000000000002c: # @func000000000000002c sub a1, a1, a2 - srai a1, a1, 1 - add a0, a0, a1 - addi a0, a0, -8 + srai a1, a1, 3 + addi a1, a1, -2 + sh2add a0, a1, a0 ret func0000000000000028: # @func0000000000000028 sub a1, a1, a2 diff --git a/result/rvb23u64/79f607899e39072c.S b/result/rvb23u64/79f607899e39072c.S index 7d02348ddc6..7999dd627a3 100644 --- a/result/rvb23u64/79f607899e39072c.S +++ b/result/rvb23u64/79f607899e39072c.S @@ -1,19 +1,22 @@ func000000000000001a: # @func000000000000001a + addi a2, a2, -1 slli a1, a1, 7 add a0, a0, a1 sh3add a0, a2, a0 - addi a0, a0, 8 + addi a0, a0, 16 ret func000000000000003a: # @func000000000000003a + addi a2, a2, 1 sh3add a1, a1, a1 sh3add a0, a1, a0 sh3add a0, a2, a0 - addi a0, a0, 16 + addi a0, a0, 8 ret func0000000000000010: # @func0000000000000010 + addi a2, a2, -1 li a3, 888 mul a1, a1, a3 add a0, a0, a1 sh2add a0, a2, a0 - addi a0, a0, 440 + addi a0, a0, 444 ret diff --git a/result/rvb23u64/7a782f8b949f38bb.S b/result/rvb23u64/7a782f8b949f38bb.S index 216fbe3998c..226a15bde4f 100644 --- a/result/rvb23u64/7a782f8b949f38bb.S +++ b/result/rvb23u64/7a782f8b949f38bb.S @@ -1,7 +1,7 @@ func0000000000000046: # @func0000000000000046 sub a2, a2, a1 + addi a2, a2, -4 sh1add a0, a2, a0 - addi a0, a0, -8 ret func0000000000000006: # @func0000000000000006 sub a2, a2, a1 diff --git a/result/rvb23u64/7d6e21ec25a773a9.S b/result/rvb23u64/7d6e21ec25a773a9.S index b1a1a51cef7..338d7067df3 100644 --- a/result/rvb23u64/7d6e21ec25a773a9.S +++ b/result/rvb23u64/7d6e21ec25a773a9.S @@ -1,10 +1,12 @@ func000000000000001a: # @func000000000000001a sext.b a1, a1 + addi a1, a1, -49 sh2add a0, a1, a0 - addi a0, a0, 372 + addi a0, a0, 568 ret func000000000000001e: # @func000000000000001e sext.b a1, a1 + addi a1, a1, -48 sh3add a0, a1, a0 - addi a0, a0, -272 + addi a0, a0, 112 ret diff --git a/result/rvb23u64/7e4552f1739f8d25.S b/result/rvb23u64/7e4552f1739f8d25.S index a2b6030b139..dbfc76bffc5 100644 --- a/result/rvb23u64/7e4552f1739f8d25.S +++ b/result/rvb23u64/7e4552f1739f8d25.S @@ -9,7 +9,6 @@ func000000000000003c: # @func000000000000003c add a0, a0, a1 ret func000000000000001e: # @func000000000000001e - slli.uw a2, a2, 5 - sh3add a1, a1, a2 - add a0, a0, a1 + sh2add.uw a1, a2, a1 + sh3add a0, a1, a0 ret diff --git a/result/rvb23u64/7e474334dfe113cd.S b/result/rvb23u64/7e474334dfe113cd.S index 87d4bca023a..6344067abc4 100644 --- a/result/rvb23u64/7e474334dfe113cd.S +++ b/result/rvb23u64/7e474334dfe113cd.S @@ -1,16 +1,16 @@ func0000000000000006: # @func0000000000000006 + addi a2, a2, -113 lui a3, 12 addiw a3, a3, 1024 mul a1, a1, a3 add a0, a0, a1 sh2add a0, a2, a0 - addi a0, a0, -452 ret func000000000000000e: # @func000000000000000e + addi a2, a2, 113 lui a3, 12 addiw a3, a3, 1024 mul a1, a1, a3 add a0, a0, a1 sh2add a0, a2, a0 - addi a0, a0, 452 ret diff --git a/result/rvb23u64/7ec4be13b916c992.S b/result/rvb23u64/7ec4be13b916c992.S index 1c5b6bb0464..1125c806278 100644 --- a/result/rvb23u64/7ec4be13b916c992.S +++ b/result/rvb23u64/7ec4be13b916c992.S @@ -18,13 +18,12 @@ func0000000000000004: # @func0000000000000004 ret func000000000000000e: # @func000000000000000e andi a2, a2, 56 - slli a1, a1, 7 - sh1add a1, a2, a1 - add a0, a0, a1 + slli a1, a1, 6 + or a1, a1, a2 + sh1add a0, a1, a0 ret func0000000000000016: # @func0000000000000016 andi a1, a1, 3 - slli a2, a2, 5 - sh3add a1, a1, a2 - add a0, a0, a1 + sh2add a1, a2, a1 + sh3add a0, a1, a0 ret diff --git a/result/rvb23u64/7edc0349dd7f7f50.S b/result/rvb23u64/7edc0349dd7f7f50.S index 185a788b72d..7c02e50b74e 100644 --- a/result/rvb23u64/7edc0349dd7f7f50.S +++ b/result/rvb23u64/7edc0349dd7f7f50.S @@ -25,9 +25,9 @@ func000000000000001a: # @func000000000000001a addi a0, a0, -120 ret func0000000000000010: # @func0000000000000010 + addi a2, a2, -1 sh2add a1, a2, a1 li a2, 1040 mul a0, a0, a2 add a0, a0, a1 - addi a0, a0, -4 ret diff --git a/result/rvb23u64/7f0a75e4762827b7.S b/result/rvb23u64/7f0a75e4762827b7.S index 3955ea883a9..7f008693508 100644 --- a/result/rvb23u64/7f0a75e4762827b7.S +++ b/result/rvb23u64/7f0a75e4762827b7.S @@ -83,8 +83,8 @@ func0000000000000012: # @func0000000000000012 ret func0000000000000038: # @func0000000000000038 sub a1, a1, a2 + addi a1, a1, -2 sh3add a0, a1, a0 - addi a0, a0, -16 ret func000000000000002a: # @func000000000000002a not a2, a2 diff --git a/result/rvb23u64/7f1e434a65f42897.S b/result/rvb23u64/7f1e434a65f42897.S index 6360b32db00..50ebf7b0363 100644 --- a/result/rvb23u64/7f1e434a65f42897.S +++ b/result/rvb23u64/7f1e434a65f42897.S @@ -1,22 +1,24 @@ func000000000000002e: # @func000000000000002e - ori a1, a1, 4 - add a0, a0, a1 + srli a1, a1, 2 + ori a1, a1, 1 + sh2add a0, a1, a0 addi a0, a0, -8 ret func000000000000000e: # @func000000000000000e - ori a1, a1, 8 - andi a1, a1, -8 - add a0, a0, a1 + srli a1, a1, 3 + ori a1, a1, 1 + sh3add a0, a1, a0 addi a0, a0, -16 ret func000000000000002c: # @func000000000000002c - ori a1, a1, 4 - add a0, a0, a1 + srli a1, a1, 2 + ori a1, a1, 1 + sh2add a0, a1, a0 addi a0, a0, -8 ret func000000000000000c: # @func000000000000000c - ori a1, a1, 8 - andi a1, a1, -8 - add a0, a0, a1 + srli a1, a1, 3 + ori a1, a1, 1 + sh3add a0, a1, a0 addi a0, a0, -16 ret diff --git a/result/rvb23u64/7f304fcee332d19f.S b/result/rvb23u64/7f304fcee332d19f.S index f9715d086ae..ec737da0329 100644 --- a/result/rvb23u64/7f304fcee332d19f.S +++ b/result/rvb23u64/7f304fcee332d19f.S @@ -10,10 +10,9 @@ func000000000000000e: # @func000000000000000e ret func000000000000001c: # @func000000000000001c zext.h a1, a1 + li a2, 1453 + sh2add a1, a2, a1 sh2add a0, a1, a0 - lui a1, 6 - addiw a1, a1, -1328 - add a0, a0, a1 ret func000000000000000c: # @func000000000000000c andi a1, a1, 255 diff --git a/result/rvb23u64/80312a235197efdd.S b/result/rvb23u64/80312a235197efdd.S index ca5e7b92ce9..e2b274c07b4 100644 --- a/result/rvb23u64/80312a235197efdd.S +++ b/result/rvb23u64/80312a235197efdd.S @@ -1,8 +1,7 @@ func0000000000000078: # @func0000000000000078 - slli a1, a1, 2 - ori a1, a1, 8 - andi a1, a1, -8 - add a0, a0, a1 + srli a1, a1, 1 + ori a1, a1, 1 + sh3add a0, a1, a0 addi a0, a0, 4 ret func000000000000007a: # @func000000000000007a diff --git a/result/rvb23u64/81f0c037f5c1bca6.S b/result/rvb23u64/81f0c037f5c1bca6.S index e5fe053651c..fa53141b714 100644 --- a/result/rvb23u64/81f0c037f5c1bca6.S +++ b/result/rvb23u64/81f0c037f5c1bca6.S @@ -1,7 +1,7 @@ func000000000000001e: # @func000000000000001e - slli a1, a1, 4 - add a0, a0, a1 - addi a0, a0, 8 + slli a1, a1, 1 + addi a1, a1, 1 + sh3add a0, a1, a0 ret func0000000000000016: # @func0000000000000016 sh1add a0, a1, a0 @@ -21,9 +21,9 @@ func0000000000000004: # @func0000000000000004 addi a0, a0, 1 ret func000000000000000e: # @func000000000000000e - slli a1, a1, 4 - add a0, a0, a1 - addi a0, a0, 4 + slli a1, a1, 2 + addi a1, a1, 1 + sh2add a0, a1, a0 ret func000000000000001c: # @func000000000000001c sh1add a0, a1, a0 diff --git a/result/rvb23u64/840f61da6f38a464.S b/result/rvb23u64/840f61da6f38a464.S index ac4bc9c2bc0..2e314cae0b9 100644 --- a/result/rvb23u64/840f61da6f38a464.S +++ b/result/rvb23u64/840f61da6f38a464.S @@ -1,5 +1,5 @@ func0000000000000006: # @func0000000000000006 sext.b a1, a1 + addi a1, a1, -49 sh2add a0, a1, a0 - addi a0, a0, -196 ret diff --git a/result/rvb23u64/84abffaabd45af72.S b/result/rvb23u64/84abffaabd45af72.S index 19dc6221b39..66a49c53be9 100644 --- a/result/rvb23u64/84abffaabd45af72.S +++ b/result/rvb23u64/84abffaabd45af72.S @@ -1,5 +1,5 @@ func000000000000001a: # @func000000000000001a + addi a2, a2, 1 sh3add a1, a1, a2 sh2add a0, a1, a0 - addi a0, a0, 4 ret diff --git a/result/rvb23u64/854901396f68c23d.S b/result/rvb23u64/854901396f68c23d.S index 6cde4fc5126..41bd3ccdcd4 100644 --- a/result/rvb23u64/854901396f68c23d.S +++ b/result/rvb23u64/854901396f68c23d.S @@ -12,6 +12,7 @@ func0000000000000000: # @func0000000000000000 ret func00000000000000d4: # @func00000000000000d4 subw a2, a2, a1 + addi a2, a2, 1 sh2add a0, a2, a0 - addiw a0, a0, 4 + sext.w a0, a0 ret diff --git a/result/rvb23u64/871d1e35b232f275.S b/result/rvb23u64/871d1e35b232f275.S index 7df8f1df580..418aa47d3c2 100644 --- a/result/rvb23u64/871d1e35b232f275.S +++ b/result/rvb23u64/871d1e35b232f275.S @@ -14,7 +14,6 @@ func0000000000000002: # @func0000000000000002 sh2add a0, a1, a0 ret func0000000000000000: # @func0000000000000000 - slli a1, a1, 3 - ori a1, a1, -16 - add a0, a0, a1 + ori a1, a1, -2 + sh3add a0, a1, a0 ret diff --git a/result/rvb23u64/90227c3f3a558e64.S b/result/rvb23u64/90227c3f3a558e64.S index 8e4177fb267..94641fe13d3 100644 --- a/result/rvb23u64/90227c3f3a558e64.S +++ b/result/rvb23u64/90227c3f3a558e64.S @@ -7,8 +7,8 @@ func000000000000007e: # @func000000000000007e func0000000000000076: # @func0000000000000076 sext.w a2, a2 add a1, a1, a2 + addi a1, a1, -1 sh2add a0, a1, a0 - addi a0, a0, -4 ret func000000000000003e: # @func000000000000003e add.uw a1, a2, a1 @@ -17,6 +17,6 @@ func000000000000003e: # @func000000000000003e ret func0000000000000002: # @func0000000000000002 add.uw a1, a2, a1 + addi a1, a1, -1 sh3add a0, a1, a0 - addi a0, a0, -8 ret diff --git a/result/rvb23u64/925b0753ff886b4f.S b/result/rvb23u64/925b0753ff886b4f.S index a4f817b60ab..fad7f26aed9 100644 --- a/result/rvb23u64/925b0753ff886b4f.S +++ b/result/rvb23u64/925b0753ff886b4f.S @@ -1,5 +1,4 @@ func0000000000000006: # @func0000000000000006 - srliw a1, a1, 1 - sh3add a0, a1, a0 - addi a0, a0, 4 + ori a1, a1, 1 + sh2add.uw a0, a1, a0 ret diff --git a/result/rvb23u64/92b377fc65bdafef.S b/result/rvb23u64/92b377fc65bdafef.S index 40feef9dcac..e7c4b8aad28 100644 --- a/result/rvb23u64/92b377fc65bdafef.S +++ b/result/rvb23u64/92b377fc65bdafef.S @@ -1,8 +1,8 @@ func0000000000000006: # @func0000000000000006 - slli a1, a1, 3 - andi a1, a1, -16 - add a0, a0, a1 - addi a0, a0, 4 + slli a1, a1, 1 + andi a1, a1, -4 + addi a1, a1, 1 + sh2add a0, a1, a0 ret func000000000000000e: # @func000000000000000e slli a1, a1, 4 diff --git a/result/rvb23u64/92e88352eeab8e91.S b/result/rvb23u64/92e88352eeab8e91.S index 2b7ba302e06..2fb127d14b7 100644 --- a/result/rvb23u64/92e88352eeab8e91.S +++ b/result/rvb23u64/92e88352eeab8e91.S @@ -15,6 +15,6 @@ func0000000000000002: # @func0000000000000002 func000000000000000e: # @func000000000000000e andi a2, a2, 1 sub a1, a1, a2 + addi a1, a1, 2 sh3add a0, a1, a0 - addi a0, a0, 16 ret diff --git a/result/rvb23u64/931b9cafe972c5d7.S b/result/rvb23u64/931b9cafe972c5d7.S index 348311f01f1..55a2f7357c5 100644 --- a/result/rvb23u64/931b9cafe972c5d7.S +++ b/result/rvb23u64/931b9cafe972c5d7.S @@ -1,8 +1,6 @@ func0000000000000003: # @func0000000000000003 - ori a1, a0, 1 - slli a0, a0, 1 - ori a0, a0, 2 - add a0, a0, a1 + ori a0, a0, 1 + sh1add a0, a0, a0 ret func0000000000000001: # @func0000000000000001 slli a0, a0, 32 @@ -18,8 +16,6 @@ func0000000000000007: # @func0000000000000007 addi a0, a0, 3 ret func0000000000000000: # @func0000000000000000 - ori a1, a0, 1 - slli a0, a0, 1 - ori a0, a0, 2 - add a0, a0, a1 + ori a0, a0, 1 + sh1add a0, a0, a0 ret diff --git a/result/rvb23u64/95af505f207771b5.S b/result/rvb23u64/95af505f207771b5.S index 8ccb27644a0..950cf7542ca 100644 --- a/result/rvb23u64/95af505f207771b5.S +++ b/result/rvb23u64/95af505f207771b5.S @@ -8,7 +8,6 @@ func0000000000000006: # @func0000000000000006 ret func0000000000000004: # @func0000000000000004 andi a2, a2, 1 - slli a1, a1, 2 - sh3add a1, a2, a1 - add a0, a0, a1 + sh1add a1, a2, a1 + sh2add a0, a1, a0 ret diff --git a/result/rvb23u64/95cd65d4b403f1e7.S b/result/rvb23u64/95cd65d4b403f1e7.S index 3942ebd8ecc..2697e63ce06 100644 --- a/result/rvb23u64/95cd65d4b403f1e7.S +++ b/result/rvb23u64/95cd65d4b403f1e7.S @@ -23,7 +23,8 @@ func00000000000001f0: # @func00000000000001f0 sh2add a0, a1, a0 ret func00000000000000c0: # @func00000000000000c0 - sh1add a1, a2, a1 + slli a2, a2, 2 + addi a2, a2, 1 + sh2add a0, a2, a0 sh3add a0, a1, a0 - addi a0, a0, 4 ret diff --git a/result/rvb23u64/95d309571633dd79.S b/result/rvb23u64/95d309571633dd79.S index 33b4b70113b..141e6e43691 100644 --- a/result/rvb23u64/95d309571633dd79.S +++ b/result/rvb23u64/95d309571633dd79.S @@ -23,6 +23,7 @@ func0000000000000018: # @func0000000000000018 ret func0000000000000000: # @func0000000000000000 sub a1, a1, a2 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 16 + addi a0, a0, 8 ret diff --git a/result/rvb23u64/95eef9f3098332be.S b/result/rvb23u64/95eef9f3098332be.S index 13f57824041..e6818cafa50 100644 --- a/result/rvb23u64/95eef9f3098332be.S +++ b/result/rvb23u64/95eef9f3098332be.S @@ -1,6 +1,6 @@ func000000000000000e: # @func000000000000000e + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func0000000000000000: # @func0000000000000000 slli a2, a1, 3 @@ -14,12 +14,12 @@ func0000000000000004: # @func0000000000000004 addi a0, a0, 1 ret func0000000000000008: # @func0000000000000008 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func0000000000000002: # @func0000000000000002 + addi a1, a1, -1 sh3add a0, a1, a0 - addi a0, a0, -8 ret func0000000000000006: # @func0000000000000006 add a0, a0, a1 @@ -36,10 +36,10 @@ func000000000000000c: # @func000000000000000c addi a0, a0, 8 ret func000000000000000f: # @func000000000000000f + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func0000000000000007: # @func0000000000000007 + addi a1, a1, -227 sh3add a0, a1, a0 - addi a0, a0, -1816 ret diff --git a/result/rvb23u64/9615b2e3a6b06db2.S b/result/rvb23u64/9615b2e3a6b06db2.S index ff67a333328..07016c1d3e7 100644 --- a/result/rvb23u64/9615b2e3a6b06db2.S +++ b/result/rvb23u64/9615b2e3a6b06db2.S @@ -1,7 +1,7 @@ func000000000000006e: # @func000000000000006e sh1add a1, a2, a1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func000000000000006c: # @func000000000000006c sh3add a1, a2, a1 @@ -38,6 +38,6 @@ func000000000000007c: # @func000000000000007c func000000000000003e: # @func000000000000003e slli a2, a2, 5 add a1, a1, a2 + addi a1, a1, 16 sh2add a0, a1, a0 - addi a0, a0, 64 ret diff --git a/result/rvb23u64/983b28b6a5b48e6f.S b/result/rvb23u64/983b28b6a5b48e6f.S index a3c465255cc..22aabece49e 100644 --- a/result/rvb23u64/983b28b6a5b48e6f.S +++ b/result/rvb23u64/983b28b6a5b48e6f.S @@ -42,9 +42,10 @@ func000000000000007a: # @func000000000000007a addi a0, a0, 16 ret func0000000000000072: # @func0000000000000072 + addi a1, a1, 2 sh1add a0, a1, a0 lui a1, 225 - addiw a1, a1, 1284 + addiw a1, a1, 1280 add a0, a0, a1 ret func0000000000000002: # @func0000000000000002 diff --git a/result/rvb23u64/98e02c8a16f4686a.S b/result/rvb23u64/98e02c8a16f4686a.S index 815700961fc..c94cd00b609 100644 --- a/result/rvb23u64/98e02c8a16f4686a.S +++ b/result/rvb23u64/98e02c8a16f4686a.S @@ -1,5 +1,5 @@ func0000000000000006: # @func0000000000000006 sraiw a1, a1, 6 + addi a1, a1, -1 sh3add a0, a1, a0 - addi a0, a0, -8 ret diff --git a/result/rvb23u64/9926ac9d90d7b58a.S b/result/rvb23u64/9926ac9d90d7b58a.S index 622e2cfcb03..feb1eb6fb76 100644 --- a/result/rvb23u64/9926ac9d90d7b58a.S +++ b/result/rvb23u64/9926ac9d90d7b58a.S @@ -27,9 +27,10 @@ func000000000000002a: # @func000000000000002a addi a0, a0, 24 ret func0000000000000030: # @func0000000000000030 + addi a2, a2, 1 add a0, a0, a1 sh2add a0, a2, a0 - addi a0, a0, 5 + addi a0, a0, 1 ret func0000000000000000: # @func0000000000000000 slli a2, a2, 4 diff --git a/result/rvb23u64/99f43a0f9eb63781.S b/result/rvb23u64/99f43a0f9eb63781.S index 3cc05bc3693..fbf64ecb33f 100644 --- a/result/rvb23u64/99f43a0f9eb63781.S +++ b/result/rvb23u64/99f43a0f9eb63781.S @@ -1,14 +1,12 @@ func000000000000009a: # @func000000000000009a sext.w a2, a2 - slli a2, a2, 2 - sh3add a1, a1, a2 - add a0, a0, a1 + sh1add a1, a1, a2 + sh2add a0, a1, a0 addi a0, a0, -8 ret func00000000000000b8: # @func00000000000000b8 sext.w a2, a2 - slli a1, a1, 5 - sh2add a1, a2, a1 - add a0, a0, a1 + sh3add a1, a1, a2 + sh2add a0, a1, a0 addi a0, a0, 4 ret diff --git a/result/rvb23u64/9b0a0ba0e976456e.S b/result/rvb23u64/9b0a0ba0e976456e.S index f6a141664cd..793e30bd58f 100644 --- a/result/rvb23u64/9b0a0ba0e976456e.S +++ b/result/rvb23u64/9b0a0ba0e976456e.S @@ -10,20 +10,23 @@ func0000000000000018: # @func0000000000000018 ret func000000000000003a: # @func000000000000003a sext.w a1, a1 - slli a1, a1, 5 - add a0, a0, a1 - addi a0, a0, 16 + slli a1, a1, 2 + addi a1, a1, 1 + sh3add a0, a1, a0 + addi a0, a0, 8 ret func000000000000001a: # @func000000000000001a slliw a1, a1, 1 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 16 + addi a0, a0, 8 ret func0000000000000038: # @func0000000000000038 sext.w a1, a1 - slli a1, a1, 4 - add a0, a0, a1 - addi a0, a0, 56 + slli a1, a1, 1 + addi a1, a1, 1 + sh3add a0, a1, a0 + addi a0, a0, 48 ret func0000000000000030: # @func0000000000000030 sext.w a1, a1 diff --git a/result/rvb23u64/9e325ffaa2399842.S b/result/rvb23u64/9e325ffaa2399842.S index 2dbb909479e..7b555772f09 100644 --- a/result/rvb23u64/9e325ffaa2399842.S +++ b/result/rvb23u64/9e325ffaa2399842.S @@ -1,7 +1,7 @@ func000000000000000e: # @func000000000000000e andi a1, a1, 255 + addi a1, a1, 256 sh2add a0, a1, a0 - addi a0, a0, 1024 ret func000000000000000c: # @func000000000000000c ori a1, a1, 64 diff --git a/result/rvb23u64/a1124a241d55907c.S b/result/rvb23u64/a1124a241d55907c.S index 2e0e280c186..46dec770e7e 100644 --- a/result/rvb23u64/a1124a241d55907c.S +++ b/result/rvb23u64/a1124a241d55907c.S @@ -12,13 +12,13 @@ func00000000000000fc: # @func00000000000000fc ret func0000000000000078: # @func0000000000000078 sub a2, a2, a1 + addi a2, a2, 1 sh1add a0, a2, a0 - addi a0, a0, 2 ret func00000000000000d4: # @func00000000000000d4 sub a2, a2, a1 + addi a2, a2, 1 sh1add a0, a2, a0 - addi a0, a0, 2 ret func00000000000000d0: # @func00000000000000d0 sub a2, a2, a1 diff --git a/result/rvb23u64/a144acbf76873007.S b/result/rvb23u64/a144acbf76873007.S index 9c977bb7a1e..b74fcaf5bb0 100644 --- a/result/rvb23u64/a144acbf76873007.S +++ b/result/rvb23u64/a144acbf76873007.S @@ -1,10 +1,14 @@ func0000000000000020: # @func0000000000000020 - sub a0, a1, a0 - slli a0, a0, 3 + sub a1, a1, a0 + addi a1, a1, 1 + slli a0, a1, 3 + addi a0, a0, -8 ret func000000000000002d: # @func000000000000002d - sub a0, a1, a0 - slli a0, a0, 3 + sub a1, a1, a0 + addi a1, a1, 1 + slli a0, a1, 3 + addi a0, a0, -8 ret func0000000000000070: # @func0000000000000070 not a0, a0 @@ -19,10 +23,14 @@ func000000000000007d: # @func000000000000007d addi a0, a0, -8 ret func0000000000000060: # @func0000000000000060 - sub a0, a1, a0 - slli a0, a0, 3 + sub a1, a1, a0 + addi a1, a1, 1 + slli a0, a1, 3 + addi a0, a0, -8 ret func000000000000006d: # @func000000000000006d - sub a0, a1, a0 - slli a0, a0, 3 + sub a1, a1, a0 + addi a1, a1, 1 + slli a0, a1, 3 + addi a0, a0, -8 ret diff --git a/result/rvb23u64/a16c81fc60cf376c.S b/result/rvb23u64/a16c81fc60cf376c.S index 50db2e8f236..1d0bde87182 100644 --- a/result/rvb23u64/a16c81fc60cf376c.S +++ b/result/rvb23u64/a16c81fc60cf376c.S @@ -1,18 +1,18 @@ func0000000000000006: # @func0000000000000006 - slli a1, a1, 49 - srli a1, a1, 47 - add a0, a0, a1 - addi a0, a0, 2 + slli a1, a1, 1 + addi a1, a1, 1 + zext.h a1, a1 + sh1add a0, a1, a0 ret func000000000000000e: # @func000000000000000e - slli a1, a1, 49 - srli a1, a1, 47 - add a0, a0, a1 - addi a0, a0, 2 + slli a1, a1, 1 + addi a1, a1, 1 + zext.h a1, a1 + sh1add a0, a1, a0 ret func000000000000001e: # @func000000000000001e - slli a1, a1, 3 - andi a1, a1, 8 - add a0, a0, a1 - addi a0, a0, 4 + slli a1, a1, 1 + andi a1, a1, 2 + addi a1, a1, 1 + sh2add a0, a1, a0 ret diff --git a/result/rvb23u64/a21b563b631d3393.S b/result/rvb23u64/a21b563b631d3393.S index 8bff2eced79..ef3152b857d 100644 --- a/result/rvb23u64/a21b563b631d3393.S +++ b/result/rvb23u64/a21b563b631d3393.S @@ -1,22 +1,26 @@ func0000000000000012: # @func0000000000000012 - sh1add a1, a2, a1 + slli a2, a2, 1 + addi a2, a2, 1 + sh3add a0, a2, a0 sh3add a0, a1, a0 - addi a0, a0, 8 ret func0000000000000010: # @func0000000000000010 - sh1add a1, a2, a1 + slli a2, a2, 1 + addi a2, a2, 1 + sh3add a0, a2, a0 sh3add a0, a1, a0 - addi a0, a0, 8 ret func0000000000000032: # @func0000000000000032 - sh1add a1, a2, a1 + slli a2, a2, 1 + addi a2, a2, 1 + sh3add a0, a2, a0 sh3add a0, a1, a0 - addi a0, a0, 8 ret func0000000000000030: # @func0000000000000030 - sh1add a1, a2, a1 + slli a2, a2, 1 + addi a2, a2, 1 + sh3add a0, a2, a0 sh3add a0, a1, a0 - addi a0, a0, 8 ret func0000000000000072: # @func0000000000000072 sh2add a0, a2, a0 diff --git a/result/rvb23u64/a282245dc607dff1.S b/result/rvb23u64/a282245dc607dff1.S index 320a49fb442..c75836544a1 100644 --- a/result/rvb23u64/a282245dc607dff1.S +++ b/result/rvb23u64/a282245dc607dff1.S @@ -9,8 +9,8 @@ func0000000000000004: # @func0000000000000004 ret func0000000000000006: # @func0000000000000006 sext.w a1, a1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func0000000000000000: # @func0000000000000000 addiw a1, a1, 1 diff --git a/result/rvb23u64/a5a6f55f9912a874.S b/result/rvb23u64/a5a6f55f9912a874.S index b27d68bfdc3..d38cc690e17 100644 --- a/result/rvb23u64/a5a6f55f9912a874.S +++ b/result/rvb23u64/a5a6f55f9912a874.S @@ -1,5 +1,6 @@ func000000000000003a: # @func000000000000003a andi a1, a1, 255 + addi a1, a1, 256 sh2add a0, a1, a0 - addi a0, a0, 1096 + addi a0, a0, 72 ret diff --git a/result/rvb23u64/a848e38690a3e4f5.S b/result/rvb23u64/a848e38690a3e4f5.S index 70457cd4c48..20672b740b2 100644 --- a/result/rvb23u64/a848e38690a3e4f5.S +++ b/result/rvb23u64/a848e38690a3e4f5.S @@ -51,6 +51,6 @@ func0000000000000008: # @func0000000000000008 ret func000000000000003e: # @func000000000000003e andi a1, a1, 255 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret diff --git a/result/rvb23u64/a943cb1f653b5fce.S b/result/rvb23u64/a943cb1f653b5fce.S index e5adc1bfcea..f29b5957380 100644 --- a/result/rvb23u64/a943cb1f653b5fce.S +++ b/result/rvb23u64/a943cb1f653b5fce.S @@ -1,8 +1,9 @@ func000000000000003f: # @func000000000000003f - slli a0, a0, 2 + addi a0, a0, -1 li a1, 1 - addi a0, a0, 11 + slli a0, a0, 2 slli a1, a1, 34 + addi a0, a0, 15 addi a1, a1, -8 and a0, a0, a1 ret @@ -13,6 +14,8 @@ func000000000000000f: # @func000000000000000f andi a0, a0, -8 ret func000000000000002f: # @func000000000000002f - slli a0, a0, 33 - srli a0, a0, 32 + addi a0, a0, -1 + slli a0, a0, 1 + addi a0, a0, 2 + zext.w a0, a0 ret diff --git a/result/rvb23u64/aa40e6d34090dfcb.S b/result/rvb23u64/aa40e6d34090dfcb.S index 8604e6e1ab5..7f78ee0ed0e 100644 --- a/result/rvb23u64/aa40e6d34090dfcb.S +++ b/result/rvb23u64/aa40e6d34090dfcb.S @@ -1,18 +1,18 @@ func0000000000000006: # @func0000000000000006 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func0000000000000004: # @func0000000000000004 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func0000000000000002: # @func0000000000000002 ori a1, a1, 32 add a0, a0, a1 ret func0000000000000007: # @func0000000000000007 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func0000000000000000: # @func0000000000000000 ori a1, a1, 3 diff --git a/result/rvb23u64/abde69a1a5dada9a.S b/result/rvb23u64/abde69a1a5dada9a.S index ee0f6c401e3..fefa2ca1dc2 100644 --- a/result/rvb23u64/abde69a1a5dada9a.S +++ b/result/rvb23u64/abde69a1a5dada9a.S @@ -1,45 +1,45 @@ func0000000000000004: # @func0000000000000004 slliw a1, a1, 1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func0000000000000064: # @func0000000000000064 slliw a1, a1, 2 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func0000000000000006: # @func0000000000000006 slliw a1, a1, 1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func000000000000000e: # @func000000000000000e slliw a1, a1, 1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func0000000000000026: # @func0000000000000026 slliw a1, a1, 1 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func0000000000000036: # @func0000000000000036 slliw a1, a1, 1 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func000000000000006e: # @func000000000000006e slliw a1, a1, 1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func000000000000002e: # @func000000000000002e slliw a1, a1, 1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func0000000000000046: # @func0000000000000046 slliw a1, a1, 2 + addi a1, a1, 2 sh2add a0, a1, a0 - addi a0, a0, 8 ret diff --git a/result/rvb23u64/adf23ced988fa085.S b/result/rvb23u64/adf23ced988fa085.S index ca695ec0d80..ca083e814a8 100644 --- a/result/rvb23u64/adf23ced988fa085.S +++ b/result/rvb23u64/adf23ced988fa085.S @@ -1,17 +1,17 @@ func000000000000000e: # @func000000000000000e add a1, a1, a2 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func000000000000001e: # @func000000000000001e add a1, a1, a2 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func0000000000000006: # @func0000000000000006 add a1, a1, a2 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func000000000000000c: # @func000000000000000c add a1, a1, a2 diff --git a/result/rvb23u64/ae10769cafcfebad.S b/result/rvb23u64/ae10769cafcfebad.S index 4f1aef8e22c..f24d9cf36ee 100644 --- a/result/rvb23u64/ae10769cafcfebad.S +++ b/result/rvb23u64/ae10769cafcfebad.S @@ -9,7 +9,7 @@ func0000000000000002: # @func0000000000000002 addi a0, a0, -32 ret func0000000000000008: # @func0000000000000008 - slli a1, a1, 4 - add a0, a0, a1 - addi a0, a0, -16 + slli a1, a1, 1 + addi a1, a1, -2 + sh3add a0, a1, a0 ret diff --git a/result/rvb23u64/b027ac01294ecf74.S b/result/rvb23u64/b027ac01294ecf74.S index 2d2da436a64..a9fbcee09de 100644 --- a/result/rvb23u64/b027ac01294ecf74.S +++ b/result/rvb23u64/b027ac01294ecf74.S @@ -4,28 +4,27 @@ func000000000000017a: # @func000000000000017a addi a0, a0, 1 ret func000000000000009a: # @func000000000000009a - slli a2, a2, 4 - slli a1, a1, 4 - add a0, a0, a1 - add a0, a0, a2 - addi a0, a0, 4 + slli a2, a2, 2 + addi a2, a2, 1 + sh2add a1, a1, a2 + sh2add a0, a1, a0 ret func00000000000000ba: # @func00000000000000ba - slli a2, a2, 4 - slli a1, a1, 4 - add a0, a0, a1 - add a0, a0, a2 - addi a0, a0, 4 + slli a2, a2, 2 + addi a2, a2, 1 + sh2add a1, a1, a2 + sh2add a0, a1, a0 ret func00000000000001f0: # @func00000000000001f0 - slli a2, a2, 6 + slli a2, a2, 4 slli a1, a1, 7 + addi a2, a2, 16 add a0, a0, a1 - add a0, a0, a2 - addi a0, a0, 64 + sh2add a0, a2, a0 ret func00000000000001ba: # @func00000000000001ba + slli a2, a2, 1 + addi a2, a2, 1 sh2add a0, a1, a0 - sh2add a0, a2, a0 - addi a0, a0, 2 + sh1add a0, a2, a0 ret diff --git a/result/rvb23u64/b288dc1fadf28cf5.S b/result/rvb23u64/b288dc1fadf28cf5.S index f891fd30921..6fc340a2424 100644 --- a/result/rvb23u64/b288dc1fadf28cf5.S +++ b/result/rvb23u64/b288dc1fadf28cf5.S @@ -1,8 +1,8 @@ func0000000000000012: # @func0000000000000012 slli a1, a1, 33 srli a1, a1, 33 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func000000000000000a: # @func000000000000000a andi a1, a1, 15 diff --git a/result/rvb23u64/b29a087699444e17.S b/result/rvb23u64/b29a087699444e17.S index 314d52ef73e..52329b1c159 100644 --- a/result/rvb23u64/b29a087699444e17.S +++ b/result/rvb23u64/b29a087699444e17.S @@ -24,8 +24,8 @@ func0000000000000002: # @func0000000000000002 func0000000000000036: # @func0000000000000036 zext.w a2, a2 sub a1, a1, a2 + addi a1, a1, 4 sh2add a0, a1, a0 - addi a0, a0, 16 ret func0000000000000056: # @func0000000000000056 not a2, a2 diff --git a/result/rvb23u64/b4a6516ce2f0988f.S b/result/rvb23u64/b4a6516ce2f0988f.S index 76a5ab18ea0..067e4a350dd 100644 --- a/result/rvb23u64/b4a6516ce2f0988f.S +++ b/result/rvb23u64/b4a6516ce2f0988f.S @@ -5,18 +5,18 @@ func0000000000000004: # @func0000000000000004 ret func000000000000000e: # @func000000000000000e sext.w a1, a1 - slli a1, a1, 5 - add a0, a0, a1 - addi a0, a0, 8 + slli a1, a1, 2 + addi a1, a1, 1 + sh3add a0, a1, a0 ret func0000000000000006: # @func0000000000000006 slliw a1, a1, 1 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func000000000000000c: # @func000000000000000c sext.w a1, a1 - slli a1, a1, 4 - add a0, a0, a1 - addi a0, a0, 8 + slli a1, a1, 1 + addi a1, a1, 1 + sh3add a0, a1, a0 ret diff --git a/result/rvb23u64/b4cc41c4280b4098.S b/result/rvb23u64/b4cc41c4280b4098.S index 22f3b7e07f4..4032e1fb99a 100644 --- a/result/rvb23u64/b4cc41c4280b4098.S +++ b/result/rvb23u64/b4cc41c4280b4098.S @@ -1,5 +1,5 @@ func0000000000000000: # @func0000000000000000 add a1, a1, a2 + addi a1, a1, 9 sh1add a0, a1, a0 - addi a0, a0, 18 ret diff --git a/result/rvb23u64/b4d70202c66fabd0.S b/result/rvb23u64/b4d70202c66fabd0.S index 50dc904333b..98df4e36b1d 100644 --- a/result/rvb23u64/b4d70202c66fabd0.S +++ b/result/rvb23u64/b4d70202c66fabd0.S @@ -16,21 +16,24 @@ func00000000000000fa: # @func00000000000000fa func0000000000000012: # @func0000000000000012 add a1, a1, a2 lui a2, 12 + addi a1, a1, -224 sh2add a0, a1, a0 - addiw a1, a2, 128 + addiw a1, a2, 1024 add a0, a0, a1 ret func0000000000000032: # @func0000000000000032 add a1, a1, a2 lui a2, 12 + addi a1, a1, 224 sh2add a0, a1, a0 - addiw a1, a2, 1920 + addiw a1, a2, 1024 add a0, a0, a1 ret func0000000000000018: # @func0000000000000018 add a1, a1, a2 lui a2, 74 + addi a1, a1, -1 sh3add a0, a1, a0 - addiw a1, a2, -96 + addiw a1, a2, -88 add a0, a0, a1 ret diff --git a/result/rvb23u64/b4dc0abe87782418.S b/result/rvb23u64/b4dc0abe87782418.S index 13a7b5b10a8..2119d0fec30 100644 --- a/result/rvb23u64/b4dc0abe87782418.S +++ b/result/rvb23u64/b4dc0abe87782418.S @@ -1,12 +1,12 @@ func0000000000000006: # @func0000000000000006 mul a1, a1, a2 slliw a1, a1, 1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func000000000000000e: # @func000000000000000e mul a1, a1, a2 slliw a1, a1, 1 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret diff --git a/result/rvb23u64/b58c223ebdde8192.S b/result/rvb23u64/b58c223ebdde8192.S index 1390d404f33..4fc05f01ca4 100644 --- a/result/rvb23u64/b58c223ebdde8192.S +++ b/result/rvb23u64/b58c223ebdde8192.S @@ -1,11 +1,11 @@ func000000000000000c: # @func000000000000000c andi a1, a1, 7 + ori a1, a1, 1472 + bseti a1, a1, 11 sh2add a0, a1, a0 - li a1, 1760 - sh3add a0, a1, a0 ret func000000000000000e: # @func000000000000000e andi a1, a1, 2 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret diff --git a/result/rvb23u64/b5b6a99de2fb3ba5.S b/result/rvb23u64/b5b6a99de2fb3ba5.S index 9e395846a92..950003174d1 100644 --- a/result/rvb23u64/b5b6a99de2fb3ba5.S +++ b/result/rvb23u64/b5b6a99de2fb3ba5.S @@ -8,8 +8,8 @@ func000000000000000e: # @func000000000000000e sext.w a1, a1 addi a1, a1, -2 seqz a1, a1 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func0000000000000034: # @func0000000000000034 sext.w a1, a1 diff --git a/result/rvb23u64/b861bd8d9e96fc12.S b/result/rvb23u64/b861bd8d9e96fc12.S index e73dbf19a35..2a67180c562 100644 --- a/result/rvb23u64/b861bd8d9e96fc12.S +++ b/result/rvb23u64/b861bd8d9e96fc12.S @@ -5,7 +5,7 @@ func000000000000000c: # @func000000000000000c ret func000000000000000e: # @func000000000000000e sext.w a1, a1 - slli a1, a1, 4 - add a0, a0, a1 - addi a0, a0, 8 + slli a1, a1, 2 + addi a1, a1, 2 + sh2add a0, a1, a0 ret diff --git a/result/rvb23u64/b8dc05e9814c52b3.S b/result/rvb23u64/b8dc05e9814c52b3.S index d3479bbcde9..c87b94b70c5 100644 --- a/result/rvb23u64/b8dc05e9814c52b3.S +++ b/result/rvb23u64/b8dc05e9814c52b3.S @@ -5,17 +5,19 @@ func0000000000000058: # @func0000000000000058 add a0, a0, a1 ret func000000000000007a: # @func000000000000007a - slli a1, a1, 5 - add a0, a0, a1 - addi a0, a0, 24 + slli a1, a1, 2 + addi a1, a1, 1 + sh3add a0, a1, a0 + addi a0, a0, 16 ret func0000000000000010: # @func0000000000000010 sh1add a0, a1, a0 ret func000000000000003a: # @func000000000000003a - slli a1, a1, 4 - add a0, a0, a1 - addi a0, a0, 60 + slli a1, a1, 2 + addi a1, a1, 1 + sh2add a0, a1, a0 + addi a0, a0, 56 ret func0000000000000078: # @func0000000000000078 sh1add a0, a1, a0 @@ -31,7 +33,8 @@ func0000000000000050: # @func0000000000000050 addi a0, a0, 29 ret func0000000000000018: # @func0000000000000018 - slli a1, a1, 4 - add a0, a0, a1 - addi a0, a0, 88 + slli a1, a1, 1 + addi a1, a1, 1 + sh3add a0, a1, a0 + addi a0, a0, 80 ret diff --git a/result/rvb23u64/b9eebd09a8e5e964.S b/result/rvb23u64/b9eebd09a8e5e964.S index ed6a70a46ab..df21c9eea83 100644 --- a/result/rvb23u64/b9eebd09a8e5e964.S +++ b/result/rvb23u64/b9eebd09a8e5e964.S @@ -1,24 +1,24 @@ func000000000000001a: # @func000000000000001a slliw a2, a2, 1 + addi a2, a2, 1 sh2add a1, a2, a1 sh2add a0, a0, a1 - addi a0, a0, 4 ret func000000000000003a: # @func000000000000003a slliw a2, a2, 3 + addi a2, a2, 4 sh2add a1, a2, a1 sh2add a0, a0, a1 - addi a0, a0, 16 ret func0000000000000010: # @func0000000000000010 slliw a2, a2, 1 + addi a2, a2, 1 sh2add a1, a2, a1 sh2add a0, a0, a1 - addi a0, a0, 4 ret func0000000000000030: # @func0000000000000030 slliw a2, a2, 1 + addi a2, a2, 1 sh3add a1, a2, a1 sh3add a0, a0, a1 - addi a0, a0, 8 ret diff --git a/result/rvb23u64/ba879af1725b7c4d.S b/result/rvb23u64/ba879af1725b7c4d.S index 3821352960a..8f70fe18266 100644 --- a/result/rvb23u64/ba879af1725b7c4d.S +++ b/result/rvb23u64/ba879af1725b7c4d.S @@ -1,5 +1,5 @@ func0000000000000006: # @func0000000000000006 srliw a1, a1, 5 + addi a1, a1, -1 sh2add a0, a1, a0 - addi a0, a0, -4 ret diff --git a/result/rvb23u64/bae7ea8e58f4bd07.S b/result/rvb23u64/bae7ea8e58f4bd07.S index e25f18fb659..b92aa5833ea 100644 --- a/result/rvb23u64/bae7ea8e58f4bd07.S +++ b/result/rvb23u64/bae7ea8e58f4bd07.S @@ -4,9 +4,9 @@ func000000000000000a: # @func000000000000000a add a0, a0, a2 ret func000000000000001a: # @func000000000000001a + addi a2, a2, 1 add a0, a0, a1 sh2add a0, a2, a0 - addi a0, a0, 4 ret func0000000000000010: # @func0000000000000010 sh3add a0, a1, a0 @@ -14,12 +14,12 @@ func0000000000000010: # @func0000000000000010 addi a0, a0, 16 ret func0000000000000012: # @func0000000000000012 + addi a2, a2, 1 sh3add a0, a1, a0 sh3add a0, a2, a0 - addi a0, a0, 8 ret func0000000000000018: # @func0000000000000018 + addi a2, a2, 1 sh3add a0, a1, a0 sh3add a0, a2, a0 - addi a0, a0, 8 ret diff --git a/result/rvb23u64/bbec0b0c6dd7de90.S b/result/rvb23u64/bbec0b0c6dd7de90.S index 5c57b869fd1..0fb18173525 100644 --- a/result/rvb23u64/bbec0b0c6dd7de90.S +++ b/result/rvb23u64/bbec0b0c6dd7de90.S @@ -1,11 +1,10 @@ func0000000000000000: # @func0000000000000000 - not a2, a2 + lui a3, 131072 + addi a3, a3, -1 + slli a3, a3, 32 + orn a2, a3, a2 sh3add a0, a1, a0 - li a1, -1 - slli a2, a2, 3 - slli a1, a1, 35 - or a1, a1, a2 - add a0, a0, a1 + sh3add a0, a2, a0 ret func0000000000000010: # @func0000000000000010 not a2, a2 diff --git a/result/rvb23u64/c0603aca66e9f147.S b/result/rvb23u64/c0603aca66e9f147.S index a34fdfad2ca..600aa9ed1ad 100644 --- a/result/rvb23u64/c0603aca66e9f147.S +++ b/result/rvb23u64/c0603aca66e9f147.S @@ -3,8 +3,9 @@ func000000000000003c: # @func000000000000003c li a3, 2 czero.nez a2, a3, a2 add a1, a1, a2 + addi a1, a1, 2 sh2add a0, a1, a0 - addiw a0, a0, 8 + sext.w a0, a0 ret func0000000000000000: # @func0000000000000000 andi a2, a2, 1 diff --git a/result/rvb23u64/c16cdef546b01e20.S b/result/rvb23u64/c16cdef546b01e20.S index ca0f032879f..637e7a8adab 100644 --- a/result/rvb23u64/c16cdef546b01e20.S +++ b/result/rvb23u64/c16cdef546b01e20.S @@ -1,5 +1,5 @@ func000000000000002e: # @func000000000000002e - srli a1, a1, 1 - add a0, a0, a1 - addi a0, a0, -8 + srli a1, a1, 3 + addi a1, a1, -2 + sh2add a0, a1, a0 ret diff --git a/result/rvb23u64/c294439856a6646e.S b/result/rvb23u64/c294439856a6646e.S index 524cbf47000..2a31ec47feb 100644 --- a/result/rvb23u64/c294439856a6646e.S +++ b/result/rvb23u64/c294439856a6646e.S @@ -1,6 +1,7 @@ func00000000000000ea: # @func00000000000000ea + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 52 + addi a0, a0, 44 ret func0000000000000022: # @func0000000000000022 slli a2, a1, 3 @@ -25,8 +26,9 @@ func00000000000000e2: # @func00000000000000e2 addi a0, a0, 893 ret func00000000000000ca: # @func00000000000000ca + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 36 + addi a0, a0, 28 ret func000000000000007a: # @func000000000000007a slli a1, a1, 4 @@ -47,9 +49,10 @@ func00000000000000fb: # @func00000000000000fb addi a0, a0, 1073 ret func000000000000007b: # @func000000000000007b + addi a1, a1, -1 sh3add a0, a1, a0 lui a1, 10 - addiw a1, a1, 648 + addiw a1, a1, 656 add a0, a0, a1 ret func0000000000000042: # @func0000000000000042 @@ -58,7 +61,8 @@ func0000000000000042: # @func0000000000000042 addi a0, a0, -280 ret func0000000000000060: # @func0000000000000060 + addi a1, a1, -1 sh3add a0, a1, a0 addi a0, a0, 2047 - addi a0, a0, 765 + addi a0, a0, 773 ret diff --git a/result/rvb23u64/c40f2dd059a28044.S b/result/rvb23u64/c40f2dd059a28044.S index 893143e21d9..3f0d2ffc57f 100644 --- a/result/rvb23u64/c40f2dd059a28044.S +++ b/result/rvb23u64/c40f2dd059a28044.S @@ -1,8 +1,8 @@ func0000000000000070: # @func0000000000000070 slliw a2, a2, 1 + addi a2, a2, 1 sh2add a1, a2, a1 sh2add a0, a0, a1 - addi a0, a0, 4 ret func000000000000002a: # @func000000000000002a slli a2, a2, 3 @@ -12,7 +12,7 @@ func000000000000002a: # @func000000000000002a ret func00000000000000fa: # @func00000000000000fa slliw a2, a2, 1 + addi a2, a2, 1 sh2add a1, a2, a1 sh2add a0, a0, a1 - addi a0, a0, 4 ret diff --git a/result/rvb23u64/c5bfcc45817d7846.S b/result/rvb23u64/c5bfcc45817d7846.S index fd3e25af5cf..572aa46a063 100644 --- a/result/rvb23u64/c5bfcc45817d7846.S +++ b/result/rvb23u64/c5bfcc45817d7846.S @@ -1,18 +1,18 @@ func0000000000000012: # @func0000000000000012 sext.w a2, a2 sh3add a0, a2, a0 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func000000000000001a: # @func000000000000001a sext.w a2, a2 sh3add a0, a2, a0 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func0000000000000010: # @func0000000000000010 sext.w a2, a2 sh2add a0, a2, a0 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret diff --git a/result/rvb23u64/c5ece0222de40f05.S b/result/rvb23u64/c5ece0222de40f05.S index a03afbc168f..ec9843a3cb2 100644 --- a/result/rvb23u64/c5ece0222de40f05.S +++ b/result/rvb23u64/c5ece0222de40f05.S @@ -5,6 +5,6 @@ func0000000000000006: # @func0000000000000006 ret func000000000000001e: # @func000000000000001e add a1, a1, a2 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret diff --git a/result/rvb23u64/c8b9dc0a1ab124f0.S b/result/rvb23u64/c8b9dc0a1ab124f0.S index 61893cf25b6..55c65e0ffd3 100644 --- a/result/rvb23u64/c8b9dc0a1ab124f0.S +++ b/result/rvb23u64/c8b9dc0a1ab124f0.S @@ -1,6 +1,6 @@ func000000000000003e: # @func000000000000003e andi a1, a1, 255 add.uw a1, a2, a1 + addi a1, a1, 2 sh2add a0, a1, a0 - addi a0, a0, 8 ret diff --git a/result/rvb23u64/c8c2203ec431c116.S b/result/rvb23u64/c8c2203ec431c116.S index c1a4921b5f0..fbd719d27ef 100644 --- a/result/rvb23u64/c8c2203ec431c116.S +++ b/result/rvb23u64/c8c2203ec431c116.S @@ -9,6 +9,8 @@ func000000000000001a: # @func000000000000001a addi a0, a0, 24 ret func0000000000000072: # @func0000000000000072 - sh3add a0, a1, a0 - addi a0, a0, 6 + slli a1, a1, 1 + addi a1, a1, 1 + sh2add a0, a1, a0 + addi a0, a0, 2 ret diff --git a/result/rvb23u64/c8ebd06d5187d245.S b/result/rvb23u64/c8ebd06d5187d245.S index a8c9cf0d551..1ccf20794ac 100644 --- a/result/rvb23u64/c8ebd06d5187d245.S +++ b/result/rvb23u64/c8ebd06d5187d245.S @@ -1,8 +1,8 @@ func0000000000000006: # @func0000000000000006 + addi a1, a1, -1 sh3add a0, a1, a0 - addi a0, a0, -8 ret func0000000000000002: # @func0000000000000002 + addi a1, a1, -1 sh3add a0, a1, a0 - addi a0, a0, -8 ret diff --git a/result/rvb23u64/c96f10c44dd1ba10.S b/result/rvb23u64/c96f10c44dd1ba10.S index 466925e7d95..6b3758c887e 100644 --- a/result/rvb23u64/c96f10c44dd1ba10.S +++ b/result/rvb23u64/c96f10c44dd1ba10.S @@ -7,5 +7,7 @@ func0000000000000018: # @func0000000000000018 ret func000000000000001a: # @func000000000000001a sext.h a1, a1 + addi a1, a1, -1 sh2add a0, a1, a0 + addi a0, a0, 4 ret diff --git a/result/rvb23u64/caf6f6412efc47d1.S b/result/rvb23u64/caf6f6412efc47d1.S index cec29360c9f..8b7733883a3 100644 --- a/result/rvb23u64/caf6f6412efc47d1.S +++ b/result/rvb23u64/caf6f6412efc47d1.S @@ -1,6 +1,6 @@ func000000000000003e: # @func000000000000003e andi a2, a2, 255 add a1, a1, a2 + addi a1, a1, 2 sh2add a0, a1, a0 - addi a0, a0, 8 ret diff --git a/result/rvb23u64/cbb866f69fd01b8e.S b/result/rvb23u64/cbb866f69fd01b8e.S index b27f6cb659c..1aca8293ee1 100644 --- a/result/rvb23u64/cbb866f69fd01b8e.S +++ b/result/rvb23u64/cbb866f69fd01b8e.S @@ -1,18 +1,18 @@ func000000000000000e: # @func000000000000000e sext.w a2, a2 add a1, a1, a2 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func000000000000001e: # @func000000000000001e sext.w a2, a2 add a1, a1, a2 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func0000000000000006: # @func0000000000000006 sext.w a2, a2 add a1, a1, a2 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret diff --git a/result/rvb23u64/ccffc91cf5ba6a28.S b/result/rvb23u64/ccffc91cf5ba6a28.S index 7bbc4fa7186..445bd9a64f3 100644 --- a/result/rvb23u64/ccffc91cf5ba6a28.S +++ b/result/rvb23u64/ccffc91cf5ba6a28.S @@ -6,6 +6,6 @@ func0000000000000002: # @func0000000000000002 ret func0000000000000046: # @func0000000000000046 slliw a1, a1, 1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret diff --git a/result/rvb23u64/cd030f32fa20c788.S b/result/rvb23u64/cd030f32fa20c788.S index 273e59da774..d9887496f75 100644 --- a/result/rvb23u64/cd030f32fa20c788.S +++ b/result/rvb23u64/cd030f32fa20c788.S @@ -3,13 +3,15 @@ func000000000000009a: # @func000000000000009a li a3, 168 mul a2, a2, a3 add a1, a1, a2 + addi a0, a0, -1 sh3add a0, a0, a1 - addi a0, a0, 48 + addi a0, a0, 56 ret func00000000000000ba: # @func00000000000000ba sh2add.uw a1, a2, a1 + addi a0, a0, 1 sh2add a0, a0, a1 - addi a0, a0, 16 + addi a0, a0, 12 ret func0000000000000010: # @func0000000000000010 add.uw a1, a2, a1 diff --git a/result/rvb23u64/ce3e218b320e926c.S b/result/rvb23u64/ce3e218b320e926c.S index b11ce0fa90e..9329082962e 100644 --- a/result/rvb23u64/ce3e218b320e926c.S +++ b/result/rvb23u64/ce3e218b320e926c.S @@ -1,18 +1,20 @@ func0000000000000050: # @func0000000000000050 - sh3add a1, a2, a1 + slli a2, a2, 1 + addi a2, a2, 1 + sh2add a1, a2, a1 sh2add a0, a0, a1 - addi a0, a0, 4 ret func0000000000000070: # @func0000000000000070 - slli a2, a2, 10 - add a1, a1, a2 + slli a2, a2, 8 + addi a2, a2, 1 + sh2add a1, a2, a1 sh2add a0, a0, a1 - addi a0, a0, 4 ret func000000000000007a: # @func000000000000007a - sh3add a1, a2, a1 + slli a2, a2, 1 + addi a2, a2, 1 + sh2add a1, a2, a1 add a0, a0, a1 - addi a0, a0, 4 ret func0000000000000010: # @func0000000000000010 slli a2, a2, 4 @@ -21,15 +23,16 @@ func0000000000000010: # @func0000000000000010 addi a0, a0, 4 ret func0000000000000030: # @func0000000000000030 - slli a2, a2, 9 - add a1, a1, a2 + slli a2, a2, 6 + addi a2, a2, 63 + sh3add a1, a2, a1 sh3add a0, a0, a1 - addi a0, a0, 504 ret func0000000000000018: # @func0000000000000018 - sh3add a1, a2, a1 + slli a2, a2, 1 + addi a2, a2, 1 + sh2add a1, a2, a1 sh2add a0, a0, a1 - addi a0, a0, 4 ret func000000000000001a: # @func000000000000001a slli a2, a2, 6 diff --git a/result/rvb23u64/d0260881ad9c5489.S b/result/rvb23u64/d0260881ad9c5489.S index 8f0a4597a6f..fdfbdefe2be 100644 --- a/result/rvb23u64/d0260881ad9c5489.S +++ b/result/rvb23u64/d0260881ad9c5489.S @@ -1,10 +1,12 @@ func00000000000000fa: # @func00000000000000fa sh1add a1, a1, a1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 8 + addi a0, a0, 4 ret func00000000000000f8: # @func00000000000000f8 sh1add a1, a1, a1 + addi a1, a1, 1 sh1add a0, a1, a0 - addi a0, a0, 754 + addi a0, a0, 752 ret diff --git a/result/rvb23u64/d033490df5746d04.S b/result/rvb23u64/d033490df5746d04.S index 9d3c0fe817b..1bd0f3725e0 100644 --- a/result/rvb23u64/d033490df5746d04.S +++ b/result/rvb23u64/d033490df5746d04.S @@ -5,6 +5,6 @@ func0000000000000004: # @func0000000000000004 ret func0000000000000006: # @func0000000000000006 slliw a1, a1, 1 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret diff --git a/result/rvb23u64/d18525d647b196f5.S b/result/rvb23u64/d18525d647b196f5.S index 869f9a2c6d3..226c48e33b1 100644 --- a/result/rvb23u64/d18525d647b196f5.S +++ b/result/rvb23u64/d18525d647b196f5.S @@ -40,8 +40,8 @@ func0000000000000008: # @func0000000000000008 sltu a0, a0, a1 ret func00000000000000e1: # @func00000000000000e1 + addi a2, a2, -1 sh1add a1, a2, a1 - addi a1, a1, -2 xor a0, a0, a1 seqz a0, a0 ret diff --git a/result/rvb23u64/d1b174814e6db248.S b/result/rvb23u64/d1b174814e6db248.S index d90dd750151..9e12bb6b761 100644 --- a/result/rvb23u64/d1b174814e6db248.S +++ b/result/rvb23u64/d1b174814e6db248.S @@ -14,15 +14,17 @@ func0000000000000028: # @func0000000000000028 add a0, a0, a1 ret func0000000000000072: # @func0000000000000072 + addi a1, a1, 2 sh1add a0, a1, a0 lui a1, 150 - addiw a1, a1, 772 + addiw a1, a1, 768 add a0, a0, a1 ret func000000000000007a: # @func000000000000007a + addi a1, a1, 2 sh1add a0, a1, a0 lui a1, 163 - addiw a1, a1, -1276 + addiw a1, a1, -1280 add a0, a0, a1 ret func000000000000002a: # @func000000000000002a @@ -45,8 +47,9 @@ func000000000000000a: # @func000000000000000a addi a0, a0, 32 ret func0000000000000018: # @func0000000000000018 + addi a1, a1, -2 sh2add a0, a1, a0 - addi a0, a0, 32 + addi a0, a0, 40 ret func0000000000000068: # @func0000000000000068 addi a1, a1, 7 diff --git a/result/rvb23u64/d252ad080d549e96.S b/result/rvb23u64/d252ad080d549e96.S index cf41c0e4ae5..46f154e5eb6 100644 --- a/result/rvb23u64/d252ad080d549e96.S +++ b/result/rvb23u64/d252ad080d549e96.S @@ -7,6 +7,6 @@ func0000000000000002: # @func0000000000000002 func0000000000000006: # @func0000000000000006 li a2, 8 maxu a1, a1, a2 + addi a1, a1, -8 sh3add a0, a1, a0 - addi a0, a0, -64 ret diff --git a/result/rvb23u64/d287d2b02fb315a6.S b/result/rvb23u64/d287d2b02fb315a6.S index 2564a09a3f5..74f1a56eb15 100644 --- a/result/rvb23u64/d287d2b02fb315a6.S +++ b/result/rvb23u64/d287d2b02fb315a6.S @@ -3,8 +3,9 @@ func000000000000001a: # @func000000000000001a li a3, 8 czero.nez a2, a3, a2 add a1, a1, a2 + addi a1, a1, 8 sh3add a0, a1, a0 - addi a0, a0, 184 + addi a0, a0, 120 ret func0000000000000018: # @func0000000000000018 andi a2, a2, 1 diff --git a/result/rvb23u64/d28eba4486690cdc.S b/result/rvb23u64/d28eba4486690cdc.S index 0f65baf3b24..c784e933ea3 100644 --- a/result/rvb23u64/d28eba4486690cdc.S +++ b/result/rvb23u64/d28eba4486690cdc.S @@ -10,8 +10,9 @@ func000000000000001c: # @func000000000000001c ret func000000000000001e: # @func000000000000001e sh1add a1, a1, a1 - sh3add a0, a1, a0 - addi a0, a0, 4 + slli a1, a1, 1 + addi a1, a1, 1 + sh2add a0, a1, a0 ret func000000000000000e: # @func000000000000000e sh1add a1, a1, a1 @@ -27,6 +28,7 @@ func000000000000000c: # @func000000000000000c ret func0000000000000006: # @func0000000000000006 sh1add a1, a1, a1 - sh3add a0, a1, a0 - addi a0, a0, 4 + slli a1, a1, 1 + addi a1, a1, 1 + sh2add a0, a1, a0 ret diff --git a/result/rvb23u64/d628cbcbea30b947.S b/result/rvb23u64/d628cbcbea30b947.S index 49f3bb6afc9..b32698d5922 100644 --- a/result/rvb23u64/d628cbcbea30b947.S +++ b/result/rvb23u64/d628cbcbea30b947.S @@ -1,6 +1,6 @@ func0000000000000041: # @func0000000000000041 + addi a2, a2, 1 sh2add a1, a2, a1 - addi a1, a1, 4 xor a0, a0, a1 seqz a0, a0 ret diff --git a/result/rvb23u64/d63affc4df089dbc.S b/result/rvb23u64/d63affc4df089dbc.S index e2fc876e131..56f3a348de0 100644 --- a/result/rvb23u64/d63affc4df089dbc.S +++ b/result/rvb23u64/d63affc4df089dbc.S @@ -1,5 +1,7 @@ func000000000000004a: # @func000000000000004a sext.h a2, a2 add a1, a1, a2 + addi a1, a1, -1 sh2add a0, a1, a0 + addi a0, a0, 4 ret diff --git a/result/rvb23u64/d6fb414ce0191a8a.S b/result/rvb23u64/d6fb414ce0191a8a.S index 4aef78970f7..ae9a8543679 100644 --- a/result/rvb23u64/d6fb414ce0191a8a.S +++ b/result/rvb23u64/d6fb414ce0191a8a.S @@ -4,9 +4,10 @@ func0000000000000010: # @func0000000000000010 addi a0, a0, 16 ret func000000000000007a: # @func000000000000007a + slli a2, a2, 1 + addi a2, a2, 1 sh2add a0, a1, a0 - sh2add a0, a2, a0 - addi a0, a0, 2 + sh1add a0, a2, a0 ret func000000000000005a: # @func000000000000005a add a0, a0, a1 @@ -19,30 +20,32 @@ func000000000000003a: # @func000000000000003a addi a0, a0, 3 ret func0000000000000072: # @func0000000000000072 + slli a2, a2, 2 + addi a2, a2, 1 sh1add a0, a1, a0 - sh3add a0, a2, a0 - addi a0, a0, 2 + sh1add a0, a2, a0 ret func0000000000000070: # @func0000000000000070 + slli a2, a2, 2 + addi a2, a2, 2 sh1add a0, a1, a0 - sh3add a0, a2, a0 - addi a0, a0, 4 + sh1add a0, a2, a0 ret func000000000000001a: # @func000000000000001a - slli a2, a2, 4 + slli a2, a2, 2 + addi a2, a2, 4 sh2add a0, a1, a0 - add a0, a0, a2 - addi a0, a0, 16 + sh2add a0, a2, a0 ret func0000000000000032: # @func0000000000000032 - slli a2, a2, 5 + slli a2, a2, 2 + addi a2, a2, 1 sh3add a0, a1, a0 - add a0, a0, a2 - addi a0, a0, 8 + sh3add a0, a2, a0 ret func0000000000000018: # @func0000000000000018 - slli a2, a2, 4 + slli a2, a2, 1 + addi a2, a2, 1 sh3add a0, a1, a0 - add a0, a0, a2 - addi a0, a0, 8 + sh3add a0, a2, a0 ret diff --git a/result/rvb23u64/d763a4cda6ddae85.S b/result/rvb23u64/d763a4cda6ddae85.S index b201f3bb010..472249429d0 100644 --- a/result/rvb23u64/d763a4cda6ddae85.S +++ b/result/rvb23u64/d763a4cda6ddae85.S @@ -1,16 +1,16 @@ func00000000000000f8: # @func00000000000000f8 slliw a1, a1, 1 - lui a2, 2 - slli a1, a1, 2 - addiw a2, a2, 1292 - ori a1, a1, 1792 - add a0, a0, a2 + ori a1, a1, 448 + sh2add a0, a1, a0 + lui a1, 2 + addiw a1, a1, 1292 add a0, a0, a1 ret func00000000000000fa: # @func00000000000000fa slliw a1, a1, 1 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 112 + addi a0, a0, 104 ret func000000000000002a: # @func000000000000002a slli a1, a1, 3 @@ -20,8 +20,9 @@ func000000000000002a: # @func000000000000002a ret func00000000000000f0: # @func00000000000000f0 slliw a1, a1, 1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, -516 + addi a0, a0, -520 ret func0000000000000030: # @func0000000000000030 slliw a1, a1, 1 diff --git a/result/rvb23u64/d7da2cee437933d9.S b/result/rvb23u64/d7da2cee437933d9.S index cf586429f21..e9fb259ad55 100644 --- a/result/rvb23u64/d7da2cee437933d9.S +++ b/result/rvb23u64/d7da2cee437933d9.S @@ -12,12 +12,12 @@ func0000000000000030: # @func0000000000000030 func0000000000000032: # @func0000000000000032 sext.w a2, a2 sh1add a0, a2, a0 + addi a1, a1, 1 sh1add a0, a1, a0 - addi a0, a0, 2 ret func000000000000003a: # @func000000000000003a sext.w a2, a2 sh1add a0, a2, a0 + addi a1, a1, 2 sh1add a0, a1, a0 - addi a0, a0, 4 ret diff --git a/result/rvb23u64/d911555a82a6d8c9.S b/result/rvb23u64/d911555a82a6d8c9.S index 98d664b1273..230c10e3588 100644 --- a/result/rvb23u64/d911555a82a6d8c9.S +++ b/result/rvb23u64/d911555a82a6d8c9.S @@ -1,18 +1,18 @@ func000000000000001a: # @func000000000000001a slliw a2, a2, 1 sh2add a0, a2, a0 + addi a1, a1, 1 sh1add a0, a1, a0 - addi a0, a0, 2 ret func0000000000000030: # @func0000000000000030 slliw a2, a2, 2 sh2add a0, a2, a0 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func000000000000003a: # @func000000000000003a slliw a2, a2, 1 sh2add a0, a2, a0 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret diff --git a/result/rvb23u64/d9bf47fbda436b16.S b/result/rvb23u64/d9bf47fbda436b16.S index 0563b321b43..f35932514fd 100644 --- a/result/rvb23u64/d9bf47fbda436b16.S +++ b/result/rvb23u64/d9bf47fbda436b16.S @@ -1,6 +1,6 @@ func00000000000000c4: # @func00000000000000c4 seqz a1, a1 + addi a1, a1, -1 sh3add a0, a1, a0 - addi a0, a0, -8 andi a0, a0, -8 ret diff --git a/result/rvb23u64/d9e359e1a0da7f5c.S b/result/rvb23u64/d9e359e1a0da7f5c.S index 8944b897b49..97c38e4b447 100644 --- a/result/rvb23u64/d9e359e1a0da7f5c.S +++ b/result/rvb23u64/d9e359e1a0da7f5c.S @@ -1,7 +1,8 @@ func000000000000001a: # @func000000000000001a slliw a1, a1, 2 + addi a1, a1, 3 sh2add a0, a1, a0 - addi a0, a0, 4 + addi a0, a0, -8 ret func000000000000003a: # @func000000000000003a sext.w a1, a1 @@ -24,6 +25,7 @@ func0000000000000012: # @func0000000000000012 ret func0000000000000018: # @func0000000000000018 slliw a1, a1, 1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 8 + addi a0, a0, 4 ret diff --git a/result/rvb23u64/da81414e43a9af79.S b/result/rvb23u64/da81414e43a9af79.S index 38f7745e4ec..67b1b9a2b38 100644 --- a/result/rvb23u64/da81414e43a9af79.S +++ b/result/rvb23u64/da81414e43a9af79.S @@ -16,8 +16,9 @@ func0000000000000010: # @func0000000000000010 addi a0, a0, -8 ret func000000000000003a: # @func000000000000003a + addi a1, a1, -2 sh2add a0, a1, a0 - addi a0, a0, -4 + addi a0, a0, 4 ret func000000000000000a: # @func000000000000000a li a2, 5 @@ -36,8 +37,9 @@ func000000000000001a: # @func000000000000001a addi a0, a0, 4 ret func000000000000003b: # @func000000000000003b + addi a1, a1, -2 sh2add a0, a1, a0 - addi a0, a0, -4 + addi a0, a0, 4 ret func000000000000001b: # @func000000000000001b li a2, -1 @@ -95,6 +97,7 @@ func0000000000000028: # @func0000000000000028 addi a0, a0, 4 ret func0000000000000030: # @func0000000000000030 + addi a1, a1, -1 sh2add a0, a1, a0 - addi a0, a0, 4 + addi a0, a0, 8 ret diff --git a/result/rvb23u64/da9fda10c2724ca0.S b/result/rvb23u64/da9fda10c2724ca0.S index 1eb14bf548c..9f684b590d0 100644 --- a/result/rvb23u64/da9fda10c2724ca0.S +++ b/result/rvb23u64/da9fda10c2724ca0.S @@ -1,8 +1,8 @@ func000000000000001c: # @func000000000000001c zext.h a2, a2 - slli a1, a1, 19 - sh3add a1, a2, a1 - add a0, a0, a1 + slli a1, a1, 16 + or a1, a1, a2 + sh3add a0, a1, a0 ret func000000000000003e: # @func000000000000003e zext.h a2, a2 diff --git a/result/rvb23u64/db21494309674e03.S b/result/rvb23u64/db21494309674e03.S index cc20725245a..a05e148764f 100644 --- a/result/rvb23u64/db21494309674e03.S +++ b/result/rvb23u64/db21494309674e03.S @@ -5,12 +5,14 @@ func000000000000000e: # @func000000000000000e addi a0, a0, -32 ret func000000000000002e: # @func000000000000002e - ori a1, a1, 8 - add a0, a0, a1 + srli a1, a1, 3 + ori a1, a1, 1 + sh3add a0, a1, a0 addi a0, a0, -16 ret func000000000000002c: # @func000000000000002c - ori a1, a1, 8 - add a0, a0, a1 + srli a1, a1, 3 + ori a1, a1, 1 + sh3add a0, a1, a0 addi a0, a0, -16 ret diff --git a/result/rvb23u64/dc1665c51e637aa1.S b/result/rvb23u64/dc1665c51e637aa1.S index cec29360c9f..8b7733883a3 100644 --- a/result/rvb23u64/dc1665c51e637aa1.S +++ b/result/rvb23u64/dc1665c51e637aa1.S @@ -1,6 +1,6 @@ func000000000000003e: # @func000000000000003e andi a2, a2, 255 add a1, a1, a2 + addi a1, a1, 2 sh2add a0, a1, a0 - addi a0, a0, 8 ret diff --git a/result/rvb23u64/dcd0f7b00497174b.S b/result/rvb23u64/dcd0f7b00497174b.S index 0ee643ace4e..afe6693b2bf 100644 --- a/result/rvb23u64/dcd0f7b00497174b.S +++ b/result/rvb23u64/dcd0f7b00497174b.S @@ -1,14 +1,14 @@ func0000000000000068: # @func0000000000000068 srli a2, a2, 3 sub a1, a1, a2 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func000000000000006a: # @func000000000000006a srli a2, a2, 3 sub a1, a1, a2 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func000000000000007e: # @func000000000000007e srli a2, a2, 3 @@ -19,14 +19,14 @@ func000000000000007e: # @func000000000000007e func0000000000000048: # @func0000000000000048 srli a2, a2, 3 sub a1, a1, a2 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func000000000000004a: # @func000000000000004a srli a2, a2, 3 sub a1, a1, a2 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func000000000000007a: # @func000000000000007a srli a2, a2, 5 @@ -50,8 +50,8 @@ func000000000000005e: # @func000000000000005e func000000000000004b: # @func000000000000004b srli a2, a2, 3 sub a1, a1, a2 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func0000000000000017: # @func0000000000000017 srai a2, a2, 32 @@ -64,8 +64,8 @@ func0000000000000017: # @func0000000000000017 func0000000000000043: # @func0000000000000043 srli a2, a2, 3 sub a1, a1, a2 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func0000000000000078: # @func0000000000000078 srli a2, a2, 4 @@ -77,8 +77,8 @@ func0000000000000078: # @func0000000000000078 func0000000000000072: # @func0000000000000072 srli a2, a2, 3 sub a1, a1, a2 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func0000000000000074: # @func0000000000000074 srli a2, a2, 5 @@ -97,12 +97,12 @@ func0000000000000040: # @func0000000000000040 func0000000000000058: # @func0000000000000058 srli a2, a2, 3 sub a1, a1, a2 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func000000000000005a: # @func000000000000005a srli a2, a2, 3 sub a1, a1, a2 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret diff --git a/result/rvb23u64/de2853856873ab43.S b/result/rvb23u64/de2853856873ab43.S index 87b57112efb..2fe723088b2 100644 --- a/result/rvb23u64/de2853856873ab43.S +++ b/result/rvb23u64/de2853856873ab43.S @@ -10,6 +10,7 @@ func0000000000000018: # @func0000000000000018 ret func000000000000001a: # @func000000000000001a sext.w a1, a1 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 16 + addi a0, a0, 8 ret diff --git a/result/rvb23u64/de8963ee1c250b17.S b/result/rvb23u64/de8963ee1c250b17.S index 344bffdbe78..d56f6a565e8 100644 --- a/result/rvb23u64/de8963ee1c250b17.S +++ b/result/rvb23u64/de8963ee1c250b17.S @@ -1,14 +1,13 @@ func000000000000000c: # @func000000000000000c slli a1, a1, 33 - srai a1, a1, 30 - add a0, a0, a1 - addi a0, a0, 4 + srai a1, a1, 32 + addi a1, a1, 1 + sh2add a0, a1, a0 ret func000000000000000e: # @func000000000000000e sext.w a1, a1 - slli a1, a1, 1 - ori a1, a1, 2 - add a0, a0, a1 + ori a1, a1, 1 + sh1add a0, a1, a0 ret func000000000000000a: # @func000000000000000a sext.w a1, a1 @@ -18,7 +17,6 @@ func000000000000000a: # @func000000000000000a func0000000000000002: # @func0000000000000002 slli a1, a1, 28 srai a1, a1, 32 - slli a1, a1, 3 - ori a1, a1, 8 - add a0, a0, a1 + ori a1, a1, 1 + sh3add a0, a1, a0 ret diff --git a/result/rvb23u64/df3722885f053d96.S b/result/rvb23u64/df3722885f053d96.S index c4eb7bfef94..c39a7f70bca 100644 --- a/result/rvb23u64/df3722885f053d96.S +++ b/result/rvb23u64/df3722885f053d96.S @@ -6,16 +6,19 @@ func0000000000000055: # @func0000000000000055 ret func000000000000007d: # @func000000000000007d add a1, a1, a2 + addi a1, a1, -1 sh1add a0, a1, a0 - addiw a0, a0, -2 + sext.w a0, a0 ret func000000000000005d: # @func000000000000005d add a1, a1, a2 + addi a1, a1, -1 sh1add a0, a1, a0 - addiw a0, a0, -2 + sext.w a0, a0 ret func0000000000000015: # @func0000000000000015 add a1, a1, a2 + addi a1, a1, -5 sh2add a0, a1, a0 - addiw a0, a0, -20 + sext.w a0, a0 ret diff --git a/result/rvb23u64/e01557e8b8cfb17d.S b/result/rvb23u64/e01557e8b8cfb17d.S index 7a22d822cec..01587c5b202 100644 --- a/result/rvb23u64/e01557e8b8cfb17d.S +++ b/result/rvb23u64/e01557e8b8cfb17d.S @@ -1,8 +1,9 @@ func0000000000000038: # @func0000000000000038 andi a1, a1, 7 + addi a1, a1, 440 sh2add a0, a1, a0 - lui a1, 3 - addiw a1, a1, -1044 + lui a1, 2 + addiw a1, a1, 1292 add a0, a0, a1 ret func000000000000003a: # @func000000000000003a diff --git a/result/rvb23u64/e16d83cc825f4c86.S b/result/rvb23u64/e16d83cc825f4c86.S index d95bc211ca5..4402d1bced0 100644 --- a/result/rvb23u64/e16d83cc825f4c86.S +++ b/result/rvb23u64/e16d83cc825f4c86.S @@ -1,12 +1,10 @@ func000000000000000e: # @func000000000000000e - slli a1, a1, 3 - ori a1, a1, 8 - add a0, a0, a1 + ori a1, a1, 1 + sh3add a0, a1, a0 addi a0, a0, -16 ret func000000000000000c: # @func000000000000000c - slli a1, a1, 3 - ori a1, a1, 8 - add a0, a0, a1 + ori a1, a1, 1 + sh3add a0, a1, a0 addi a0, a0, -16 ret diff --git a/result/rvb23u64/e1e9cfac18d8bdce.S b/result/rvb23u64/e1e9cfac18d8bdce.S index cddd33e1f4a..e3bc0dc711e 100644 --- a/result/rvb23u64/e1e9cfac18d8bdce.S +++ b/result/rvb23u64/e1e9cfac18d8bdce.S @@ -11,6 +11,7 @@ func0000000000000002: # @func0000000000000002 addi a0, a0, 20 ret func0000000000000016: # @func0000000000000016 + addi a1, a1, 255 sh3add a0, a1, a0 - addi a0, a0, 2047 + addi a0, a0, 7 ret diff --git a/result/rvb23u64/e20614c7ce8f613e.S b/result/rvb23u64/e20614c7ce8f613e.S index f878868a684..546687524ee 100644 --- a/result/rvb23u64/e20614c7ce8f613e.S +++ b/result/rvb23u64/e20614c7ce8f613e.S @@ -15,8 +15,8 @@ func000000000000000a: # @func000000000000000a add a0, a0, a1 ret func000000000000000e: # @func000000000000000e + addi a1, a1, -2 sh1add a0, a1, a0 - addi a0, a0, -4 ret func000000000000001a: # @func000000000000001a addi a1, a1, 63 diff --git a/result/rvb23u64/e238d6fb473bc269.S b/result/rvb23u64/e238d6fb473bc269.S index 525a26ac1e4..391b57d4e9b 100644 --- a/result/rvb23u64/e238d6fb473bc269.S +++ b/result/rvb23u64/e238d6fb473bc269.S @@ -1,15 +1,18 @@ func0000000000000355: # @func0000000000000355 sh3add a0, a1, a0 + addi a0, a0, -48 slli a0, a0, 3 - addiw a0, a0, -432 + addiw a0, a0, -48 ret func0000000000000155: # @func0000000000000155 sh3add a0, a1, a0 + addi a0, a0, -48 slli a0, a0, 3 - addiw a0, a0, -432 + addiw a0, a0, -48 ret func000000000000035d: # @func000000000000035d sh3add a0, a1, a0 + addi a0, a0, -48 slli a0, a0, 3 - addiw a0, a0, -432 + addiw a0, a0, -48 ret diff --git a/result/rvb23u64/e3e102c6d86f2799.S b/result/rvb23u64/e3e102c6d86f2799.S index 95a0529e6eb..29f16d46c26 100644 --- a/result/rvb23u64/e3e102c6d86f2799.S +++ b/result/rvb23u64/e3e102c6d86f2799.S @@ -5,7 +5,7 @@ func000000000000003e: # @func000000000000003e ret func000000000000003c: # @func000000000000003c andi a1, a1, 255 - slli a1, a1, 4 - add a0, a0, a1 - addi a0, a0, 8 + slli a1, a1, 1 + addi a1, a1, 1 + sh3add a0, a1, a0 ret diff --git a/result/rvb23u64/e3f985501319b97c.S b/result/rvb23u64/e3f985501319b97c.S index 054fe4321ae..aa3bea15caf 100644 --- a/result/rvb23u64/e3f985501319b97c.S +++ b/result/rvb23u64/e3f985501319b97c.S @@ -1,12 +1,14 @@ func00000000000000fa: # @func00000000000000fa add a1, a1, a2 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 14 + addi a0, a0, 6 ret func000000000000004a: # @func000000000000004a add a1, a1, a2 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 36 + addi a0, a0, 32 ret func000000000000000a: # @func000000000000000a add a1, a1, a2 diff --git a/result/rvb23u64/e5ee1374600055f9.S b/result/rvb23u64/e5ee1374600055f9.S index 48978a8e09d..675da94f965 100644 --- a/result/rvb23u64/e5ee1374600055f9.S +++ b/result/rvb23u64/e5ee1374600055f9.S @@ -25,13 +25,13 @@ func000000000000001e: # @func000000000000001e ret func000000000000001c: # @func000000000000001c slliw a1, a1, 1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret func000000000000000e: # @func000000000000000e slliw a1, a1, 1 + addi a1, a1, 1 sh1add a0, a1, a0 - addi a0, a0, 2 ret func000000000000002a: # @func000000000000002a slli a1, a1, 1 diff --git a/result/rvb23u64/e8dc1942363581e2.S b/result/rvb23u64/e8dc1942363581e2.S index bc07eb27128..3a010dd209a 100644 --- a/result/rvb23u64/e8dc1942363581e2.S +++ b/result/rvb23u64/e8dc1942363581e2.S @@ -14,8 +14,8 @@ func0000000000000004: # @func0000000000000004 add a0, a0, a1 ret func000000000000000e: # @func000000000000000e + addi a1, a1, -2 sh1add a0, a1, a0 - addi a0, a0, -4 ret func000000000000000a: # @func000000000000000a addi a1, a1, -1 diff --git a/result/rvb23u64/e95f297c3c0f9754.S b/result/rvb23u64/e95f297c3c0f9754.S index 5c32479e3bf..2c99fb293b5 100644 --- a/result/rvb23u64/e95f297c3c0f9754.S +++ b/result/rvb23u64/e95f297c3c0f9754.S @@ -16,6 +16,7 @@ func000000000000005e: # @func000000000000005e ret func0000000000000058: # @func0000000000000058 zext.h a1, a1 + addi a1, a1, -1 sh2add a0, a1, a0 - addi a0, a0, 20 + addi a0, a0, 24 ret diff --git a/result/rvb23u64/e9c0682aa7042518.S b/result/rvb23u64/e9c0682aa7042518.S index 08f09738bbc..90a8e6612d2 100644 --- a/result/rvb23u64/e9c0682aa7042518.S +++ b/result/rvb23u64/e9c0682aa7042518.S @@ -4,6 +4,7 @@ func000000000000006a: # @func000000000000006a addi a0, a0, 80 ret func0000000000000062: # @func0000000000000062 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 1184 + addi a0, a0, 1180 ret diff --git a/result/rvb23u64/ea4906fb3ca935e5.S b/result/rvb23u64/ea4906fb3ca935e5.S index 2cc327196c2..f105f446f11 100644 --- a/result/rvb23u64/ea4906fb3ca935e5.S +++ b/result/rvb23u64/ea4906fb3ca935e5.S @@ -1,15 +1,15 @@ func0000000000000010: # @func0000000000000010 + addi a2, a2, 1 sh2add a1, a2, a1 sh2add a0, a0, a1 - addi a0, a0, 4 ret func000000000000001a: # @func000000000000001a + addi a2, a2, 1 sh2add a1, a2, a1 add a0, a0, a1 - addi a0, a0, 4 ret func0000000000000018: # @func0000000000000018 + addi a2, a2, 2 sh3add a1, a2, a1 sh3add a0, a0, a1 - addi a0, a0, 16 ret diff --git a/result/rvb23u64/eb2988438a7831ff.S b/result/rvb23u64/eb2988438a7831ff.S index 9dd60e84501..a152f59896b 100644 --- a/result/rvb23u64/eb2988438a7831ff.S +++ b/result/rvb23u64/eb2988438a7831ff.S @@ -12,11 +12,13 @@ func000000000000005e: # @func000000000000005e ret func00000000000000ca: # @func00000000000000ca sub a2, a2, a1 + addi a2, a2, 1 sh1add a0, a2, a0 - addi a0, a0, 198 + addi a0, a0, 196 ret func00000000000000da: # @func00000000000000da sub a2, a2, a1 + addi a2, a2, 4 sh2add a0, a2, a0 - addi a0, a0, 288 + addi a0, a0, 272 ret diff --git a/result/rvb23u64/eb49be33e896056b.S b/result/rvb23u64/eb49be33e896056b.S index cfb0844e047..a31338a5666 100644 --- a/result/rvb23u64/eb49be33e896056b.S +++ b/result/rvb23u64/eb49be33e896056b.S @@ -1,7 +1,7 @@ func000000000000007c: # @func000000000000007c srliw a1, a1, 3 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func00000000000000bc: # @func00000000000000bc srliw a1, a1, 2 diff --git a/result/rvb23u64/ebc3f438072cfd62.S b/result/rvb23u64/ebc3f438072cfd62.S index 22097411a11..db86ebcb7ca 100644 --- a/result/rvb23u64/ebc3f438072cfd62.S +++ b/result/rvb23u64/ebc3f438072cfd62.S @@ -17,7 +17,9 @@ func00000000000000fa: # @func00000000000000fa ret func000000000000007a: # @func000000000000007a slliw a1, a1, 2 + addi a1, a1, 1 sh2add a0, a1, a0 + addi a0, a0, -4 ret func00000000000000f0: # @func00000000000000f0 slliw a1, a1, 2 diff --git a/result/rvb23u64/ebd6655e1d308878.S b/result/rvb23u64/ebd6655e1d308878.S index 284d9304754..29313f305d2 100644 --- a/result/rvb23u64/ebd6655e1d308878.S +++ b/result/rvb23u64/ebd6655e1d308878.S @@ -1,19 +1,25 @@ func0000000000000018: # @func0000000000000018 + addi a0, a0, -1 sh2add a0, a0, a1 - addi a0, a0, 28 + addi a0, a0, 32 ret func000000000000000a: # @func000000000000000a + addi a0, a0, -1 sh3add a0, a0, a1 - addi a0, a0, 8 + addi a0, a0, 16 ret func000000000000003a: # @func000000000000003a + addi a0, a0, 1 sh2add a0, a0, a1 - addi a0, a0, 12 + addi a0, a0, 8 ret func0000000000000038: # @func0000000000000038 + addi a0, a0, 1 sh3add a0, a0, a1 - addi a0, a0, 48 + addi a0, a0, 40 ret func000000000000001a: # @func000000000000001a + addi a0, a0, -1 sh3add a0, a0, a1 + addi a0, a0, 8 ret diff --git a/result/rvb23u64/ebe8ec25d57aadfd.S b/result/rvb23u64/ebe8ec25d57aadfd.S index 9720a748a5f..d9c7f27f78c 100644 --- a/result/rvb23u64/ebe8ec25d57aadfd.S +++ b/result/rvb23u64/ebe8ec25d57aadfd.S @@ -10,8 +10,9 @@ func000000000000008a: # @func000000000000008a ret func00000000000000aa: # @func00000000000000aa sh2add a0, a0, a2 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 8 + addi a0, a0, 4 ret func0000000000000090: # @func0000000000000090 add a0, a0, a2 diff --git a/result/rvb23u64/ec864ee487874f48.S b/result/rvb23u64/ec864ee487874f48.S index f45a4aa0878..898214203a7 100644 --- a/result/rvb23u64/ec864ee487874f48.S +++ b/result/rvb23u64/ec864ee487874f48.S @@ -1,14 +1,13 @@ func000000000000000e: # @func000000000000000e - srli a1, a1, 14 - andi a1, a1, 1020 - add a0, a0, a1 - addi a0, a0, 1024 + slli a1, a1, 40 + srli a1, a1, 56 + addi a1, a1, 256 + sh2add a0, a1, a0 ret func000000000000000c: # @func000000000000000c - srli a1, a1, 3 - andi a1, a1, 508 - add a0, a0, a1 - lui a1, 5 - addiw a1, a1, 512 - add a0, a0, a1 + slli a1, a1, 52 + srli a1, a1, 57 + li a2, 1312 + sh2add a1, a2, a1 + sh2add a0, a1, a0 ret diff --git a/result/rvb23u64/ecce752e8c6e06cb.S b/result/rvb23u64/ecce752e8c6e06cb.S index 8e23f982428..23ab6d4bcf2 100644 --- a/result/rvb23u64/ecce752e8c6e06cb.S +++ b/result/rvb23u64/ecce752e8c6e06cb.S @@ -6,8 +6,8 @@ func0000000000000010: # @func0000000000000010 ret func000000000000003a: # @func000000000000003a andi a2, a2, 56 - slli a1, a1, 7 - sh1add a1, a2, a1 - add a0, a0, a1 + slli a1, a1, 6 + or a1, a1, a2 + sh1add a0, a1, a0 addi a0, a0, 2 ret diff --git a/result/rvb23u64/ed06fe4d3349feaa.S b/result/rvb23u64/ed06fe4d3349feaa.S index bcf14da3181..fa8ab507246 100644 --- a/result/rvb23u64/ed06fe4d3349feaa.S +++ b/result/rvb23u64/ed06fe4d3349feaa.S @@ -1,12 +1,12 @@ func000000000000000c: # @func000000000000000c - srai a1, a1, 30 - add a0, a0, a1 - addi a0, a0, 4 + srai a1, a1, 32 + addi a1, a1, 1 + sh2add a0, a1, a0 ret func000000000000000e: # @func000000000000000e - srai a1, a1, 31 - add a0, a0, a1 - addi a0, a0, 2 + srai a1, a1, 32 + addi a1, a1, 1 + sh1add a0, a1, a0 ret func000000000000000a: # @func000000000000000a srai a1, a1, 32 @@ -15,7 +15,6 @@ func000000000000000a: # @func000000000000000a ret func0000000000000002: # @func0000000000000002 srai a1, a1, 32 - slli a1, a1, 3 - ori a1, a1, 8 - add a0, a0, a1 + ori a1, a1, 1 + sh3add a0, a1, a0 ret diff --git a/result/rvb23u64/ed456b9402b7120e.S b/result/rvb23u64/ed456b9402b7120e.S index eea75ffd0c9..4a91cf6bf6f 100644 --- a/result/rvb23u64/ed456b9402b7120e.S +++ b/result/rvb23u64/ed456b9402b7120e.S @@ -1,22 +1,22 @@ func000000000000003e: # @func000000000000003e sh1add a1, a1, a1 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func000000000000003c: # @func000000000000003c sh1add a1, a1, a1 + addi a1, a1, 1 sh1add a0, a1, a0 - addi a0, a0, 2 ret func0000000000000036: # @func0000000000000036 - slli a2, a1, 9 - sh3add a1, a1, a2 - add a0, a0, a1 - addi a0, a0, -520 + slli a2, a1, 6 + add a1, a1, a2 + addi a1, a1, -65 + sh3add a0, a1, a0 ret func0000000000000016: # @func0000000000000016 - slli a2, a1, 9 - sh3add a1, a1, a2 - add a0, a0, a1 - addi a0, a0, -520 + slli a2, a1, 6 + add a1, a1, a2 + addi a1, a1, -65 + sh3add a0, a1, a0 ret diff --git a/result/rvb23u64/ed7b0e9c6903d103.S b/result/rvb23u64/ed7b0e9c6903d103.S index 7b5d2574b61..8adfd002cb5 100644 --- a/result/rvb23u64/ed7b0e9c6903d103.S +++ b/result/rvb23u64/ed7b0e9c6903d103.S @@ -8,8 +8,8 @@ func0000000000000010: # @func0000000000000010 srliw a2, a2, 7 slli a2, a2, 7 sh2add a0, a2, a0 + addi a1, a1, 16 sh2add a0, a1, a0 - addi a0, a0, 64 ret func000000000000001a: # @func000000000000001a andi a2, a2, 7 diff --git a/result/rvb23u64/ee465f5365934c33.S b/result/rvb23u64/ee465f5365934c33.S index dc421553c02..4d9c1e792fe 100644 --- a/result/rvb23u64/ee465f5365934c33.S +++ b/result/rvb23u64/ee465f5365934c33.S @@ -1,12 +1,12 @@ func000000000000001c: # @func000000000000001c - slli a2, a2, 19 - sh3add a1, a1, a2 - add a0, a0, a1 + slli a2, a2, 16 + or a1, a1, a2 + sh3add a0, a1, a0 ret func0000000000000004: # @func0000000000000004 - slli a2, a2, 9 - sh3add a1, a1, a2 - add a0, a0, a1 + slli a2, a2, 6 + or a1, a1, a2 + sh3add a0, a1, a0 ret func000000000000001e: # @func000000000000001e slli a2, a2, 8 diff --git a/result/rvb23u64/ef40c8421ba7e137.S b/result/rvb23u64/ef40c8421ba7e137.S index 1b42d01e571..baefbd2dcea 100644 --- a/result/rvb23u64/ef40c8421ba7e137.S +++ b/result/rvb23u64/ef40c8421ba7e137.S @@ -10,8 +10,8 @@ func000000000000000a: # @func000000000000000a ret func0000000000000012: # @func0000000000000012 srliw a1, a1, 1 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func000000000000003e: # @func000000000000003e srliw a1, a1, 2 @@ -25,8 +25,8 @@ func0000000000000008: # @func0000000000000008 ret func0000000000000032: # @func0000000000000032 srliw a1, a1, 1 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func000000000000000e: # @func000000000000000e srliw a1, a1, 5 diff --git a/result/rvb23u64/efe85c3f2ea7e031.S b/result/rvb23u64/efe85c3f2ea7e031.S index 39c766d7d63..8bafc030149 100644 --- a/result/rvb23u64/efe85c3f2ea7e031.S +++ b/result/rvb23u64/efe85c3f2ea7e031.S @@ -1,8 +1,8 @@ func0000000000000074: # @func0000000000000074 andi a2, a2, 255 sub a1, a1, a2 + addi a1, a1, 1 sh1add a0, a1, a0 - addi a0, a0, 2 ret func0000000000000034: # @func0000000000000034 andi a2, a2, 255 @@ -19,8 +19,8 @@ func0000000000000036: # @func0000000000000036 func0000000000000076: # @func0000000000000076 andi a2, a2, 255 sub a1, a1, a2 + addi a1, a1, 1 sh1add a0, a1, a0 - addi a0, a0, 2 ret func0000000000000014: # @func0000000000000014 andi a2, a2, 255 diff --git a/result/rvb23u64/f083efcecc906395.S b/result/rvb23u64/f083efcecc906395.S index 3eb64b4ac04..d06b7c4d3a9 100644 --- a/result/rvb23u64/f083efcecc906395.S +++ b/result/rvb23u64/f083efcecc906395.S @@ -14,9 +14,9 @@ func000000000000003a: # @func000000000000003a addi a0, a0, 1 ret func000000000000002a: # @func000000000000002a + addi a2, a2, 1 sh2add a0, a1, a0 sh2add a0, a2, a0 - addi a0, a0, 4 ret func0000000000000030: # @func0000000000000030 slli a1, a1, 5 diff --git a/result/rvb23u64/f0b7363c8dac63cf.S b/result/rvb23u64/f0b7363c8dac63cf.S index d85f58e01a9..affaf0f0807 100644 --- a/result/rvb23u64/f0b7363c8dac63cf.S +++ b/result/rvb23u64/f0b7363c8dac63cf.S @@ -1,8 +1,8 @@ func0000000000000004: # @func0000000000000004 add a1, a1, a2 slliw a1, a1, 1 + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func000000000000002e: # @func000000000000002e add a1, a1, a2 @@ -25,6 +25,6 @@ func0000000000000006: # @func0000000000000006 func0000000000000026: # @func0000000000000026 add a1, a1, a2 slliw a1, a1, 1 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 4 ret diff --git a/result/rvb23u64/f189c35909e35aa4.S b/result/rvb23u64/f189c35909e35aa4.S index 8cd95e4b8f2..7789779ddf9 100644 --- a/result/rvb23u64/f189c35909e35aa4.S +++ b/result/rvb23u64/f189c35909e35aa4.S @@ -1,10 +1,14 @@ func000000000000005a: # @func000000000000005a sext.w a2, a2 add a1, a1, a2 + addi a1, a1, -1 sh2add a0, a1, a0 + addi a0, a0, 4 ret func000000000000005e: # @func000000000000005e sext.w a2, a2 add a1, a1, a2 + addi a1, a1, -1 sh2add a0, a1, a0 + addi a0, a0, 4 ret diff --git a/result/rvb23u64/f28f05e471f4929f.S b/result/rvb23u64/f28f05e471f4929f.S index 19664a6710a..ae7fb89f65b 100644 --- a/result/rvb23u64/f28f05e471f4929f.S +++ b/result/rvb23u64/f28f05e471f4929f.S @@ -1,10 +1,10 @@ func000000000000000e: # @func000000000000000e srai a1, a1, 2 + addi a1, a1, -2 sh1add a0, a1, a0 - addi a0, a0, -4 ret func000000000000000c: # @func000000000000000c srai a1, a1, 3 + addi a1, a1, -2 sh2add a0, a1, a0 - addi a0, a0, -8 ret diff --git a/result/rvb23u64/f38cd5a4bf61954b.S b/result/rvb23u64/f38cd5a4bf61954b.S index 732ae1e3346..013017100b6 100644 --- a/result/rvb23u64/f38cd5a4bf61954b.S +++ b/result/rvb23u64/f38cd5a4bf61954b.S @@ -30,8 +30,8 @@ func000000000000000a: # @func000000000000000a ret func0000000000000036: # @func0000000000000036 add a1, a1, a2 + addi a1, a1, -1 sh1add a0, a1, a0 - addi a0, a0, -2 ret func0000000000000012: # @func0000000000000012 add a1, a1, a2 @@ -51,6 +51,6 @@ func0000000000000014: # @func0000000000000014 ret func0000000000000004: # @func0000000000000004 add a1, a1, a2 + addi a1, a1, -1 sh3add a0, a1, a0 - addi a0, a0, -8 ret diff --git a/result/rvb23u64/f4236d748a177e8a.S b/result/rvb23u64/f4236d748a177e8a.S index 402538eb496..fcdbe0b60a9 100644 --- a/result/rvb23u64/f4236d748a177e8a.S +++ b/result/rvb23u64/f4236d748a177e8a.S @@ -16,8 +16,8 @@ func000000000000000e: # @func000000000000000e func0000000000000012: # @func0000000000000012 sext.w a1, a1 max a1, a1, zero + addi a1, a1, 1 sh3add a0, a1, a0 - addi a0, a0, 8 ret func000000000000003e: # @func000000000000003e sext.w a1, a1 diff --git a/result/rvb23u64/f4f875df4615de16.S b/result/rvb23u64/f4f875df4615de16.S index cb029465cf6..3d86943a4cf 100644 --- a/result/rvb23u64/f4f875df4615de16.S +++ b/result/rvb23u64/f4f875df4615de16.S @@ -1,15 +1,17 @@ func000000000000001e: # @func000000000000001e - sh3add a0, a1, a0 - addi a0, a0, 4 + slli a1, a1, 1 + addi a1, a1, 1 + sh2add a0, a1, a0 ret func000000000000001c: # @func000000000000001c - slli a1, a1, 4 - add a0, a0, a1 - addi a0, a0, 8 + slli a1, a1, 1 + addi a1, a1, 1 + sh3add a0, a1, a0 ret func0000000000000014: # @func0000000000000014 - sh3add a0, a1, a0 - addi a0, a0, 4 + slli a1, a1, 1 + addi a1, a1, 1 + sh2add a0, a1, a0 ret func0000000000000006: # @func0000000000000006 sh1add a0, a1, a0 @@ -35,7 +37,7 @@ func0000000000000016: # @func0000000000000016 addi a0, a0, 1 ret func0000000000000007: # @func0000000000000007 - slli a1, a1, 4 - add a0, a0, a1 - addi a0, a0, 8 + slli a1, a1, 1 + addi a1, a1, 1 + sh3add a0, a1, a0 ret diff --git a/result/rvb23u64/f524ac700dbb809f.S b/result/rvb23u64/f524ac700dbb809f.S index 4244cd5e2ff..bdf98807f63 100644 --- a/result/rvb23u64/f524ac700dbb809f.S +++ b/result/rvb23u64/f524ac700dbb809f.S @@ -25,8 +25,9 @@ func00000000000000ba: # @func00000000000000ba ret func000000000000007a: # @func000000000000007a andi a1, a1, 255 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 280 + addi a0, a0, 276 ret func00000000000000b8: # @func00000000000000b8 andi a1, a1, 255 @@ -44,11 +45,13 @@ func00000000000000a8: # @func00000000000000a8 ret func0000000000000078: # @func0000000000000078 andi a1, a1, 255 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 132 + addi a0, a0, 128 ret func00000000000000fa: # @func00000000000000fa andi a1, a1, 255 + addi a1, a1, 1 sh2add a0, a1, a0 - addi a0, a0, 784 + addi a0, a0, 780 ret diff --git a/result/rvb23u64/f948c5ba30040584.S b/result/rvb23u64/f948c5ba30040584.S index a2858c76120..687f3ac1b52 100644 --- a/result/rvb23u64/f948c5ba30040584.S +++ b/result/rvb23u64/f948c5ba30040584.S @@ -6,7 +6,6 @@ func000000000000001e: # @func000000000000001e ret func000000000000001c: # @func000000000000001c andi a1, a1, 3 - slli a2, a1, 4 - sh2add a1, a1, a2 - add a0, a0, a1 + sh2add a1, a1, a1 + sh2add a0, a1, a0 ret diff --git a/result/rvb23u64/fa3e056243029a39.S b/result/rvb23u64/fa3e056243029a39.S index 25008b1cd25..34f5cd763cc 100644 --- a/result/rvb23u64/fa3e056243029a39.S +++ b/result/rvb23u64/fa3e056243029a39.S @@ -1,22 +1,22 @@ func0000000000000012: # @func0000000000000012 + addi a2, a2, 1 sh3add a0, a2, a0 sh3add a0, a1, a0 - addi a0, a0, 8 ret func0000000000000010: # @func0000000000000010 + addi a2, a2, 1 sh3add a0, a2, a0 sh3add a0, a1, a0 - addi a0, a0, 8 ret func000000000000001a: # @func000000000000001a + addi a2, a2, 1 sh2add a0, a2, a0 sh2add a0, a1, a0 - addi a0, a0, 4 ret func0000000000000014: # @func0000000000000014 + addi a2, a2, 1 sh2add a0, a2, a0 sh2add a0, a1, a0 - addi a0, a0, 4 ret func000000000000001c: # @func000000000000001c add a0, a0, a2 @@ -24,7 +24,7 @@ func000000000000001c: # @func000000000000001c addi a0, a0, 4 ret func000000000000001e: # @func000000000000001e + addi a2, a2, 1 sh2add a0, a2, a0 sh2add a0, a1, a0 - addi a0, a0, 4 ret diff --git a/result/rvb23u64/fdcbdf0b6020a744.S b/result/rvb23u64/fdcbdf0b6020a744.S index b467d713fd2..dca5f81544e 100644 --- a/result/rvb23u64/fdcbdf0b6020a744.S +++ b/result/rvb23u64/fdcbdf0b6020a744.S @@ -24,8 +24,8 @@ func000000000000000a: # @func000000000000000a sh3add a0, a1, a0 ret func000000000000001e: # @func000000000000001e + addi a1, a1, 2 sh1add a0, a1, a0 - addi a0, a0, 4 ret func000000000000001a: # @func000000000000001a addi a1, a1, 1 @@ -33,8 +33,8 @@ func000000000000001a: # @func000000000000001a sh3add a0, a1, a0 ret func0000000000000004: # @func0000000000000004 + addi a1, a1, -2 sh2add a0, a1, a0 - addi a0, a0, -8 ret func0000000000000018: # @func0000000000000018 addi a1, a1, 7 diff --git a/result/rvb23u64/fe0337e7e56dd983.S b/result/rvb23u64/fe0337e7e56dd983.S index 4e94f7983f7..2c6f80f0e1f 100644 --- a/result/rvb23u64/fe0337e7e56dd983.S +++ b/result/rvb23u64/fe0337e7e56dd983.S @@ -18,27 +18,27 @@ func000000000000007a: # @func000000000000007a ret func0000000000000070: # @func0000000000000070 slliw a2, a2, 2 + addi a2, a2, 2 sh1add a0, a1, a0 sh1add a0, a2, a0 - addi a0, a0, 4 ret func0000000000000072: # @func0000000000000072 slliw a2, a2, 1 + addi a2, a2, 1 sh1add a0, a1, a0 sh1add a0, a2, a0 - addi a0, a0, 2 ret func000000000000003a: # @func000000000000003a slliw a2, a2, 1 + addi a2, a2, 1 sh1add a0, a1, a0 sh1add a0, a2, a0 - addi a0, a0, 2 ret func00000000000000f2: # @func00000000000000f2 slliw a2, a2, 1 + addi a2, a2, 1 sh3add a0, a1, a0 sh3add a0, a2, a0 - addi a0, a0, 8 ret func0000000000000020: # @func0000000000000020 slli a2, a2, 3 diff --git a/result/rvb23u64/fe6569e6e0bd5bfb.S b/result/rvb23u64/fe6569e6e0bd5bfb.S index eb600d0de89..df79fa68cf0 100644 --- a/result/rvb23u64/fe6569e6e0bd5bfb.S +++ b/result/rvb23u64/fe6569e6e0bd5bfb.S @@ -6,8 +6,8 @@ func0000000000000002: # @func0000000000000002 func0000000000000016: # @func0000000000000016 sext.w a1, a1 sh1add a1, a1, a1 + addi a1, a1, 1 sh1add a0, a1, a0 - addi a0, a0, 2 ret func0000000000000000: # @func0000000000000000 sh1add a1, a1, a1 @@ -17,6 +17,6 @@ func0000000000000000: # @func0000000000000000 func0000000000000006: # @func0000000000000006 sh2add a1, a1, a1 sext.w a1, a1 + addi a1, a1, -5 sh3add a0, a1, a0 - addi a0, a0, -40 ret diff --git a/result/rvb23u64/feb3d3f1b51f1ff0.S b/result/rvb23u64/feb3d3f1b51f1ff0.S index f606405b71c..d67cd3c2a6d 100644 --- a/result/rvb23u64/feb3d3f1b51f1ff0.S +++ b/result/rvb23u64/feb3d3f1b51f1ff0.S @@ -1,19 +1,21 @@ func000000000000002e: # @func000000000000002e sub a1, a1, a2 - ori a1, a1, 4 - add a0, a0, a1 + srli a1, a1, 2 + ori a1, a1, 1 + sh2add a0, a1, a0 addi a0, a0, -8 ret func000000000000000e: # @func000000000000000e sub a1, a1, a2 - ori a1, a1, 8 - andi a1, a1, -8 - add a0, a0, a1 + srli a1, a1, 3 + ori a1, a1, 1 + sh3add a0, a1, a0 addi a0, a0, -16 ret func000000000000002c: # @func000000000000002c sub a1, a1, a2 - ori a1, a1, 8 - add a0, a0, a1 + srli a1, a1, 3 + ori a1, a1, 1 + sh3add a0, a1, a0 addi a0, a0, -16 ret diff --git a/result/rvb23u64/fef535cc466456c6.S b/result/rvb23u64/fef535cc466456c6.S index 964cb11130e..88c091d1fa0 100644 --- a/result/rvb23u64/fef535cc466456c6.S +++ b/result/rvb23u64/fef535cc466456c6.S @@ -1,18 +1,18 @@ func000000000000002e: # @func000000000000002e sub a1, a1, a2 - srai a1, a1, 1 - add a0, a0, a1 - addi a0, a0, -4 + srai a1, a1, 2 + addi a1, a1, -2 + sh1add a0, a1, a0 ret func000000000000000e: # @func000000000000000e sub a1, a1, a2 srai a1, a1, 3 + addi a1, a1, -2 sh2add a0, a1, a0 - addi a0, a0, -8 ret func000000000000002c: # @func000000000000002c sub a1, a1, a2 - srai a1, a1, 1 - add a0, a0, a1 - addi a0, a0, -16 + srai a1, a1, 4 + addi a1, a1, -2 + sh3add a0, a1, a0 ret diff --git a/scripts/setup_pre_commit_patch.sh b/scripts/setup_pre_commit_patch.sh index d8d993d1b31..65ccc462969 100755 --- a/scripts/setup_pre_commit_patch.sh +++ b/scripts/setup_pre_commit_patch.sh @@ -2,7 +2,7 @@ set -euo pipefail shopt -s inherit_errexit -export GITHUB_PATCH_ID="/llvm-project/commit/" +export GITHUB_PATCH_ID="llvm/llvm-project/pull/119527" # Please rebase manually # git fetch origin