xref: /llvm-project/llvm/test/CodeGen/NVPTX/minmax-negative.ll (revision b279f6b098d3849f7f1c1f539b108307d5f8ae2d)
1; RUN: llc < %s -mtriple=nvptx64 -O0 | FileCheck %s
2; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64 -O0 | %ptxas-verify %}
3
4define i16 @test1(ptr %sur1) {
5; CHECK-NOT: mov.u16 %rs{{[0-9]+}}, 32767
6  %_tmp21.i = icmp sle i16 0, 0
7  %_tmp22.i = select i1 %_tmp21.i, i16 0, i16 32767
8  store i16 %_tmp22.i, ptr %sur1
9  ret i16 0
10}
11