Debian Codegraph @

llvm/test/CodeGen/SPIRV/constant/local-bool-constants.ll

raw
1 ; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s
2
3 define i1 @getConstantTrue() {
4 ret i1 true
5 }
6
7 define i1 @getConstantFalse() {
8 ret i1 false
9 }
10
11 ; CHECK: [[BOOL:%.+]] = OpTypeBool
12 ; CHECK-DAG: [[FN:%.+]] = OpTypeFunction [[BOOL]]
13 ; CHECK-DAG: [[TRUE:%.+]] = OpConstantTrue
14 ; CHECK-DAG: [[FALSE:%.+]] = OpConstantFalse
15
16 ; CHECK: OpFunction [[BOOL]] None [[FN]]
17 ; CHECK: OpFunction [[BOOL]] None [[FN]]