18 lines · plain
1; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s2 3define i1 @getConstantTrue() {4 ret i1 true5}6 7define i1 @getConstantFalse() {8 ret i1 false9}10 11; CHECK: [[BOOL:%.+]] = OpTypeBool12; CHECK-DAG: [[FN:%.+]] = OpTypeFunction [[BOOL]]13; CHECK-DAG: [[TRUE:%.+]] = OpConstantTrue14; CHECK-DAG: [[FALSE:%.+]] = OpConstantFalse15 16; CHECK: OpFunction [[BOOL]] None [[FN]]17; CHECK: OpFunction [[BOOL]] None [[FN]]18