clang/test/CIR/Lowering/poison.cir
raw| 1 | // RUN: cir-translate -cir-to-llvmir --disable-cc-lowering -o %t.ll %s |
| 2 | // RUN: FileCheck -check-prefix=LLVM --input-file=%t.ll %s |
| 3 | |
| 4 | !s32i = !cir.int<s, 32> |
| 5 | |
| 6 | module { |
| 7 | cir.func @lower_poison() -> !s32i { |
| 8 | %0 = cir.const #cir.poison : !s32i |
| 9 | cir.return %0 : !s32i |
| 10 | } |
| 11 | // LLVM-LABEL: @lower_poison |
| 12 | // LLVM-NEXT: ret i32 poison |
| 13 | // LLVM-NEXT: } |
| 14 | } |