|
| 1 | +; RUN: llc --filetype=obj --mcpu=cheriot --mtriple=riscv32-unknown-unknown -target-abi cheriot %s -mattr=+xcheri,+cap-mode -o - | llvm-readelf -a - | FileCheck %s |
| 2 | + |
| 3 | +; CHECK-LABEL: ELF Header: |
| 4 | +; CHECK: Flags: 0x70009, RVC, RVE, cheriabi, capability mode, cheriot |
| 5 | + |
| 6 | +target datalayout = "e-m:e-pf200:64:64:64:32-p:32:32-i64:64-n32-S128-A200-P200-G200" |
| 7 | +target triple = "riscv32cheriot-unknown-cheriotrtos" |
| 8 | + |
| 9 | + |
| 10 | +define void @foo() addrspace(200) #0 { |
| 11 | +entry: |
| 12 | + ret void |
| 13 | +} |
| 14 | + |
| 15 | +attributes #0 = { minsize mustprogress nounwind optsize "frame-pointer"="none" "min-legal-vector-width"="0" "no-builtins" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="cheriot" "target-features"="+relax,+xcheri,-64bit,-save-restore" } |
| 16 | + |
| 17 | +!llvm.linker.options = !{} |
| 18 | +!llvm.module.flags = !{!0, !1, !2} |
| 19 | +!llvm.ident = !{!3} |
| 20 | + |
| 21 | +!0 = !{i32 1, !"wchar_size", i32 2} |
| 22 | +!1 = !{i32 1, !"target-abi", !"cheriot"} |
| 23 | +!2 = !{i32 1, !"SmallDataLimit", i32 8} |
| 24 | +!3 = !{! "clang version 13.0.0 (ssh://[email protected]/CHERIoT-Platform/llvm-project 42ccdb1bcc7eb0bf8cc8e493850359f828515495)"} |
| 25 | +!4 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5} |
| 26 | +!5 = !{!6, !6, i64 0} |
| 27 | +!6 = !{!"int", !7, i64 0} |
| 28 | +!7 = !{!"omnipotent char", !8, i64 0} |
| 29 | +!8 = !{!"Simple C++ TBAA"} |
| 30 | +!9 = !{i64 0, i64 128, !10} |
| 31 | +!10 = !{!7, !7, i64 0} |
| 32 | + |
0 commit comments