1 # RUN: llvm-mc -triple=ve %s -o - | FileCheck %s
2 # RUN: llvm-mc -triple=ve -filetype=obj %s -o - | llvm-objdump -r - | FileCheck %s --check-prefix=CHECK-OBJ
7 lea.
sl %s1
, var@hi
(, %s1
)
10 lea.
sl %s1
, var+
8@hi
(, %s1
)
12 # CHECK-NEXT: lea %s1, var@lo
13 # CHECK-NEXT: and %s1, %s1, (32)0
14 # CHECK-NEXT: lea.sl %s1, var@hi(, %s1)
15 # CHECK-NEXT: lea %s1, var+8@lo
16 # CHECK-NEXT: and %s1, %s1, (32)0
17 # CHECK-NEXT: lea.sl %s1, var+8@hi(, %s1)
19 # CHECK-OBJ: 0 R_VE_REFLONG var
20 # CHECK-OBJ-NEXT: 8 R_VE_LO32 var
21 # CHECK-OBJ-NEXT: 18 R_VE_HI32 var
22 # CHECK-OBJ-NEXT: 20 R_VE_LO32 var+0x8
23 # CHECK-OBJ-NEXT: 30 R_VE_HI32 var+0x8