[bolt,AArch64] Fix one more test failure from D130358.
authorSimon Tatham <simon.tatham@arm.com>
Tue, 26 Jul 2022 13:01:33 +0000 (14:01 +0100)
committerSimon Tatham <simon.tatham@arm.com>
Tue, 26 Jul 2022 15:41:09 +0000 (16:41 +0100)
This one actually makes the test simpler, because lit doesn't have to
reconstitute a 32-bit little-endian value from individual bytes any
more: llvm-objdump is printing the desired 32-bit value in the first
place, so we can move straight on to doing the arithmetic on it.

bolt/test/AArch64/r_aarch64_prelxx.s

index fd99141..f1dd319 100644 (file)
@@ -2,10 +2,6 @@
 // S + A - P = Value
 // S = P - A + Value
 
-// mul(D1,0x100) == << 8
-// mul(D2,0x10000) == << 16
-// mul(D3,0x1000000) == << 24
-
 // REQUIRES: system-linux
 
 // RUN: %clang %cflags -nostartfiles -nostdlib %s -o %t.exe -mlittle-endian \
 
 // CHECKPREL32: [[#%x,DATATABLEADDR:]] <datatable>:
 // CHECKPREL32-NEXT: 00:
-// CHECKPREL32-NEXT: 04: [[#%x,D0:]] [[#%x,D1:]] [[#%x,D2:]] [[#%x,D3:]]
+// CHECKPREL32-NEXT: 04: [[#%x,VALUE:]]
 
 // 4 is offset in datatable
 // 8 is addend
-// CHECKPREL32: [[#DATATABLEADDR + 4 - 8 + D0 + mul(D1,0x100) + mul(D2,0x10000) + mul(D3,0x1000000)]] <_start>:
+// CHECKPREL32: [[#DATATABLEADDR + 4 - 8 + VALUE]] <_start>:
 
 // RUN: llvm-objdump -D %t.bolt | FileCheck %s --check-prefix=CHECKPREL64
 // CHECKPREL64: [[#%x,DATATABLEADDR:]] <datatable>:
 // CHECKPREL64-NEXT: 00:
 // CHECKPREL64-NEXT: 04:
-// CHECKPREL64-NEXT: 08: [[#%x,D0:]] [[#%x,D1:]] [[#%x,D2:]] [[#%x,D3:]]
-// CHECKPREL64-NEXT: 0c: 00 00 00 00
+// CHECKPREL64-NEXT: 08: [[#%x,VALUE:]]
+// CHECKPREL64-NEXT: 0c: 00000000
 
 // 8 is offset in datatable
 // 12 is addend
-// CHECKPREL64: [[#DATATABLEADDR + 8 - 12 + D0 + mul(D1,0x100) + mul(D2,0x10000) + mul(D3,0x1000000)]] <_start>:
+// CHECKPREL64: [[#DATATABLEADDR + 8 - 12 + VALUE]] <_start>:
 
   .section .text
   .align 4