1*cf3d6fdeSNathan Gauër; RUN: llc -O0 -verify-machineinstrs -mtriple=spirv-unknown-unknown %s -o - | FileCheck %s 282d8a956SFarzon Lotfi; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-unknown %s -o - -filetype=obj | spirv-val %} 382d8a956SFarzon Lotfi 482d8a956SFarzon Lotfi; CHECK: OpExtInstImport "GLSL.std.450" 582d8a956SFarzon Lotfi 682d8a956SFarzon Lotfidefine noundef i16 @test_umax_i16(i16 noundef %a, i16 noundef %b) { 782d8a956SFarzon Lotfientry: 882d8a956SFarzon Lotfi; CHECK: %[[#]] = OpExtInst %[[#]] %[[#]] UMax %[[#]] %[[#]] 982d8a956SFarzon Lotfi %0 = call i16 @llvm.umax.i16(i16 %a, i16 %b) 1082d8a956SFarzon Lotfi ret i16 %0 1182d8a956SFarzon Lotfi} 1282d8a956SFarzon Lotfi 1382d8a956SFarzon Lotfidefine noundef i32 @test_umax_i32(i32 noundef %a, i32 noundef %b) { 1482d8a956SFarzon Lotfientry: 1582d8a956SFarzon Lotfi; CHECK: %[[#]] = OpExtInst %[[#]] %[[#]] UMax %[[#]] %[[#]] 1682d8a956SFarzon Lotfi %0 = call i32 @llvm.umax.i32(i32 %a, i32 %b) 1782d8a956SFarzon Lotfi ret i32 %0 1882d8a956SFarzon Lotfi} 1982d8a956SFarzon Lotfi 2082d8a956SFarzon Lotfidefine noundef i64 @test_umax_i64(i64 noundef %a, i64 noundef %b) { 2182d8a956SFarzon Lotfientry: 2282d8a956SFarzon Lotfi; CHECK: %[[#]] = OpExtInst %[[#]] %[[#]] UMax %[[#]] %[[#]] 2382d8a956SFarzon Lotfi %0 = call i64 @llvm.umax.i64(i64 %a, i64 %b) 2482d8a956SFarzon Lotfi ret i64 %0 2582d8a956SFarzon Lotfi} 2682d8a956SFarzon Lotfi 2782d8a956SFarzon Lotfideclare i16 @llvm.umax.i16(i16, i16) 2882d8a956SFarzon Lotfideclare i32 @llvm.umax.i32(i32, i32) 2982d8a956SFarzon Lotfideclare i64 @llvm.umax.i64(i64, i64) 30