1 ; RUN: not llc -filetype=obj 2>&1 -o /dev/null < %s | FileCheck %s
3 ; ModuleID = '/scratch/llvm/master/tools/clang/test/Misc/inline-asm-diags.c'
4 source_filename = "/scratch/llvm/master/tools/clang/test/Misc/inline-asm-diags.c"
5 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
6 target triple = "armv7-arm-none-eabi"
8 ; Function Attrs: noinline nounwind
9 define void @foo2() #0 {
11 call void asm sideeffect " wibble", ""() #1, !srcloc !3
12 ; CHECK: note: !srcloc = 107
16 ; Function Attrs: noinline nounwind
17 define void @foo() #0 {
19 call void asm sideeffect " .word -bar", ""() #1, !srcloc !4
20 ; CHECK: note: !srcloc = 181
21 call void asm sideeffect " .word -foo", ""() #1, !srcloc !5
22 ; CHECK: note: !srcloc = 257
23 call void asm sideeffect " .word -stoat", ""() #1, !srcloc !6
24 ; CHECK: note: !srcloc = 534
28 attributes #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" }
29 attributes #1 = { nounwind }
31 !llvm.module.flags = !{!0, !1}
34 !0 = !{i32 1, !"wchar_size", i32 4}
35 !1 = !{i32 1, !"min_enum_size", i32 4}
36 !2 = !{!"clang version 5.0.0 "}
39 ; These !srcloc metadata nodes are intentionally not all the same type: D105491
40 ; changed the creation of !srcloc to generate i64 instead of the previous i32.
41 ; So one thing we're testing here is that both types are acceptable on input,
42 ; i.e. IR generated both before and after the change can be consumed.