|
| 1 | +; RUN: rm -rf %t && mkdir -p %t |
| 2 | +; RUN: llc -O0 -cas-friendly-debug-info --filetype=obj --cas-backend --cas=/tmp/cas --mccas-native %s --mccas-emit-casid-file -o %t/test.o |
| 3 | +; RUN: cat %t/test.o.casid | FileCheck %s --check-prefix=NATIVE_FILENAME |
| 4 | +; NATIVE_FILENAME: CASID:Jllvmcas://{{.*}} |
| 5 | +; |
| 6 | +; RUN: rm -rf %t && mkdir -p %t |
| 7 | +; RUN: llc -O0 -cas-friendly-debug-info --filetype=obj --cas-backend --cas=/tmp/cas --mccas-verify %s --mccas-emit-casid-file -o %t/test.o |
| 8 | +; RUN: cat %t/test.o.casid | FileCheck %s --check-prefix=VERIFY_FILENAME |
| 9 | +; VERIFY_FILENAME: CASID:Jllvmcas://{{.*}} |
| 10 | +; |
| 11 | +; RUN: rm -rf %t && mkdir -p %t |
| 12 | +; RUN: llc -O0 -cas-friendly-debug-info --filetype=obj --cas-backend --cas=/tmp/cas --mccas-casid %s --mccas-emit-casid-file -o %t/test.o |
| 13 | +; RUN: not cat %t/test.o.casid |
| 14 | +; |
| 15 | +; RUN: rm -rf %t && mkdir -p %t |
| 16 | +; RUN: llc -O0 -cas-friendly-debug-info --filetype=obj --cas-backend --cas=/tmp/cas --mccas-native %s --mccas-emit-casid-file -o - |
| 17 | +; RUN: not cat %t/test.o.casid |
| 18 | +; |
| 19 | +; RUN: rm -rf %t && mkdir -p %t |
| 20 | +; RUN: llc -O0 -cas-friendly-debug-info --filetype=obj --cas-backend --cas=/tmp/cas --mccas-verify %s --mccas-emit-casid-file -o - |
| 21 | +; RUN: not cat %t/test.o.casid |
| 22 | +; |
| 23 | +; RUN: rm -rf %t && mkdir -p %t |
| 24 | +; RUN: llc -O0 -cas-friendly-debug-info --filetype=obj --cas-backend --cas=/tmp/cas --mccas-casid %s --mccas-emit-casid-file -o - |
| 25 | +; RUN: not cat %t/test.o.casid |
| 26 | + |
| 27 | +; ModuleID = '/Users/shubham/Development/test109275485/a.cpp' |
| 28 | +source_filename = "/Users/shubham/Development/test109275485/a.cpp" |
| 29 | +target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128" |
| 30 | +target triple = "arm64-apple-macosx14.0.0" |
| 31 | + |
| 32 | +; Function Attrs: mustprogress noinline nounwind optnone ssp uwtable(sync) |
| 33 | +define noundef i32 @_Z3fooi(i32 noundef %x) #0 { |
| 34 | +entry: |
| 35 | + %x.addr = alloca i32, align 4 |
| 36 | + store i32 %x, ptr %x.addr, align 4 |
| 37 | + %0 = load i32, ptr %x.addr, align 4 |
| 38 | + %add = add nsw i32 %0, 2 |
| 39 | + ret i32 %add |
| 40 | +} |
| 41 | + |
| 42 | +!llvm.module.flags = !{!0, !1, !2, !3} |
| 43 | +!llvm.ident = !{!4} |
| 44 | + |
| 45 | +!0 = !{i32 1, !"wchar_size", i32 4} |
| 46 | +!1 = !{i32 8, !"PIC Level", i32 2} |
| 47 | +!2 = !{i32 7, !"uwtable", i32 1} |
| 48 | +!3 = !{i32 7, !"frame-pointer", i32 1} |
| 49 | +!4 = !{! "clang version 18.0.0 ([email protected]:apple/llvm-project.git bd5fc55041b3dfab2de1640638ce4b5e8a016998)"} |
0 commit comments