[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / VE / sym-tls.s
blob03a68cab5bb29f132f3da1ab1eb66cb24fa5acbc
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
4 lea %s0, x@tls_gd_lo(-24)
5 and %s0, %s0, (32)0
6 sic %s10
7 lea.sl %s0, x@tls_gd_hi(%s10, %s0)
8 lea %s12, __tls_get_addr@plt_lo(8)
9 and %s12, %s12, (32)0
10 lea.sl %s12, __tls_get_addr@plt_hi(%s10, %s12)
11 bsic %s10, (, %s12)
12 # CHECK: lea %s0, x@tls_gd_lo(-24)
13 # CHECK-NEXT: and %s0, %s0, (32)0
14 # CHECK-NEXT: sic %s10
15 # CHECK-NEXT: lea.sl %s0, x@tls_gd_hi(%s10, %s0)
16 # CHECK-NEXT: lea %s12, __tls_get_addr@plt_lo(8)
17 # CHECK-NEXT: and %s12, %s12, (32)0
18 # CHECK-NEXT: lea.sl %s12, __tls_get_addr@plt_hi(%s10, %s12)
19 # CHECK-NEXT: bsic %s10, (, %s12)
21 # CHECK-OBJ: 0 R_VE_TLS_GD_LO32 x
22 # CHECK-OBJ-NEXT: 18 R_VE_TLS_GD_HI32 x
23 # CHECK-OBJ-NEXT: 20 R_VE_PLT_LO32 __tls_get_addr
24 # CHECK-OBJ-NEXT: 30 R_VE_PLT_HI32 __tls_get_addr