21 lines · plain
1; RUN: llc < %s -mtriple aarch64-gnu-linux | FileCheck %s2; RUN: llc < %s -mtriple arm64-apple-darwin | FileCheck %s3 4target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"5 6; CHECK-LABEL: test_inlineasm_globaladdress:7; CHECK: b {{_?}}test_symbol8define void @test_inlineasm_globaladdress() {9 call void asm sideeffect "b $0", "i"(ptr @test_symbol)10 ret void11}12 13; CHECK-LABEL: test_inlineasm_globaladdress_offset:14; CHECK: b {{_?}}test_symbol+415define void @test_inlineasm_globaladdress_offset() {16 call void asm sideeffect "b $0", "i"(ptr getelementptr (i8, ptr @test_symbol, i64 4))17 ret void18}19 20declare void @test_symbol()21