1 ;RUN: llc -mtriple=aarch64-none-linux-gnu -mattr=+neon < %s | FileCheck %s
3 define void @test_inline_constraint_S() {
4 ; CHECK-LABEL: test_inline_constraint_S:
5 call void asm sideeffect "adrp x0, $0", "S"(ptr @var)
6 call void asm sideeffect "add x0, x0, :lo12:$0", "S"(ptr @var)
8 ; CHECK: add x0, x0, :lo12:var
11 define i32 @test_inline_constraint_S_label(i1 %in) {
12 ; CHECK-LABEL: test_inline_constraint_S_label:
13 call void asm sideeffect "adr x0, $0", "S"(ptr blockaddress(@test_inline_constraint_S_label, %loc))
14 ; CHECK: adr x0, .Ltmp{{[0-9]+}}
15 br i1 %in, label %loc, label %loc2
21 define i32 @test_inline_constraint_S_label_tailmerged(i1 %in) {
22 ; CHECK-LABEL: test_inline_constraint_S_label_tailmerged:
23 call void asm sideeffect "adr x0, $0", "S"(ptr blockaddress(@test_inline_constraint_S_label_tailmerged, %loc))
24 ; CHECK: adr x0, .Ltmp{{[0-9]+}}
25 br i1 %in, label %loc, label %loc2
31 %common.retval = phi i32 [ 0, %loc ], [ 42, %loc2 ]
32 ret i32 %common.retval
35 define i32 @test_inline_constraint_S_label_tailmerged2(i1 %in) {
36 ; CHECK-LABEL: test_inline_constraint_S_label_tailmerged2:
37 call void asm sideeffect "adr x0, $0", "S"(ptr blockaddress(@test_inline_constraint_S_label_tailmerged2, %loc))
38 ; CHECK: adr x0, .Ltmp{{[0-9]+}}
39 br i1 %in, label %loc, label %loc2
41 %common.retval = phi i32 [ 0, %loc ], [ 42, %loc2 ]
42 ret i32 %common.retval