brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · efc4439 Raw
31 lines · plain
1; RUN: llc --mtriple=riscv32 --filetype=obj -o - %s | llvm-readelf -n - | FileCheck --check-prefixes=READELF %s2; RUN: llc --mtriple=riscv64 --filetype=obj -o - %s | llvm-readelf -n - | FileCheck --check-prefixes=READELF %s3; RUN: llc --mtriple=riscv32 -o - %s | FileCheck --check-prefixes=ASM,ASM32 %s4; RUN: llc --mtriple=riscv64 -o - %s | FileCheck --check-prefixes=ASM,ASM64 %s5 6; READELF: Properties: RISC-V feature: ZICFISS7 8; ASM:                .section        ".note.GNU-stack","",@progbits9; ASM-NEXT:           .section        .note.gnu.property,"a",@note10; ASM32-NEXT:         .p2align        2, 0x011; ASM64-NEXT:         .p2align        3, 0x012; ASM-NEXT:           .word   413; ASM32-NEXT:         .word   1214; ASM64-NEXT:         .word   1615; ASM-NEXT:           .word   516; ASM-NEXT:           .asciz  "GNU"17; ASM-NEXT:           .word   322122547218; ASM-NEXT:           .word   419; ASM-NEXT:           .word   220; ASM32-NEXT:         .p2align        2, 0x021; ASM64-NEXT:         .p2align        3, 0x022 23define i32 @f() "hw-shadow-stack" {24entry:25  ret i32 026}27 28!llvm.module.flags = !{!0}29 30!0 = !{i32 8, !"cf-protection-return", i32 1}31