44 lines · plain
1; RUN: not llc -filetype=obj 2>&1 -o /dev/null < %s | FileCheck %s2 3target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"4target triple = "armv7-arm-none-eabi"5 6; Function Attrs: noinline nounwind7define void @foo2() #0 {8entry:9 call void asm sideeffect " wibble", ""() #1, !srcloc !310; CHECK: note: !srcloc = 10711 ret void12}13 14; Function Attrs: noinline nounwind15define void @foo() #0 {16entry:17 call void asm sideeffect " .word -bar", ""() #1, !srcloc !418; CHECK: note: !srcloc = 18119 call void asm sideeffect " .word -foo", ""() #1, !srcloc !520; CHECK: note: !srcloc = 25721 call void asm sideeffect " .word -stoat", ""() #1, !srcloc !622; CHECK: note: !srcloc = 53423 ret void24}25 26attributes #0 = { noinline nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="cortex-a8" "target-features"="+dsp,+neon,+strict-align,+vfp3" "unsafe-fp-math"="false" "use-soft-float"="false" }27attributes #1 = { nounwind }28 29!llvm.module.flags = !{!0, !1}30!llvm.ident = !{!2}31 32!0 = !{i32 1, !"wchar_size", i32 4}33!1 = !{i32 1, !"min_enum_size", i32 4}34!2 = !{!"clang version 5.0.0 "}35!3 = !{i32 107}36 37; These !srcloc metadata nodes are intentionally not all the same type: D10549138; changed the creation of !srcloc to generate i64 instead of the previous i32.39; So one thing we're testing here is that both types are acceptable on input,40; i.e. IR generated both before and after the change can be consumed.41!4 = !{i32 181}42!5 = !{i32 257}43!6 = !{i64 534}44