brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · c10d631 Raw
37 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=i686 < %s | FileCheck %s3; RUN: llc -mtriple=x86_64 < %s | FileCheck %s4 5@var = external dso_local global i32, align 46@a = external global [4 x i32], align 167 8define dso_local void @test() {9; CHECK-LABEL: test:10; CHECK:       # %bb.0: # %entry11; CHECK-NEXT:    #APP12; CHECK-NEXT:    # var a+12 test13; CHECK-NEXT:    #NO_APP14; CHECK-NEXT:    ret{{[l|q]}}15entry:16  %ai = getelementptr inbounds [4 x i32], ptr @a, i64 0, i64 317  call void asm sideeffect "// ${0:p} ${1:p} ${2:p}", "^Ws,^Ws,^Ws,~{dirflag},~{fpsr},~{flags}"(ptr @var, ptr %ai, ptr @test)18  ret void19}20 21define dso_local void @test_label() {22; CHECK-LABEL: test_label:23; CHECK:       # %bb.0: # %entry24; CHECK-NEXT:  .Ltmp0: # Block address taken25; CHECK-NEXT:  # %bb.1: # %label26; CHECK-NEXT:    #APP27; CHECK-NEXT:    # .Ltmp028; CHECK-NEXT:    #NO_APP29; CHECK-NEXT:    ret{{[l|q]}}30entry:31  br label %label32 33label:34  tail call void asm sideeffect "// ${0:p}", "^Ws,~{dirflag},~{fpsr},~{flags}"(ptr blockaddress(@test_label, %label))35  ret void36}37