1;RUN: llc -mtriple=aarch64-none-linux-gnu -mattr=+neon < %s | FileCheck %s
2@var = global i32 0
3define void @test_inline_constraint_S() {
4; CHECK-LABEL: test_inline_constraint_S:
5  call void asm sideeffect "adrp x0, $0", "S"(i32* @var)
6  call void asm sideeffect "add x0, x0, :lo12:$0", "S"(i32* @var)
7; CHECK: adrp x0, var
8; CHECK: add x0, x0, :lo12:var
9  ret void
10}
11define 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"(i8* blockaddress(@test_inline_constraint_S_label, %loc))
14; CHECK: adr x0, .Ltmp{{[0-9]+}}
15br i1 %in, label %loc, label %loc2
16loc:
17  ret i32 0
18loc2:
19  ret i32 42
20}
21