brintos

brintos / llvm-project-archived public Read only

0
0
Text · 831 B · 2c7819a Raw
22 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 52; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx942 < %s | FileCheck %s3 4; FIXME The sext modifier is turned into a neg modifier in the asm output5 6define i32 @test_select_on_sext_sdwa(i8 %x, i32 %y, i1 %cond)  {7; CHECK-LABEL: test_select_on_sext_sdwa:8; CHECK:       ; %bb.0:9; CHECK-NEXT:    s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)10; CHECK-NEXT:    v_and_b32_e32 v2, 1, v211; CHECK-NEXT:    v_cmp_eq_u32_e32 vcc, 1, v212; CHECK-NEXT:    v_bfe_i32 v0, v0, 0, 813; CHECK-NEXT:    s_nop 014; CHECK-NEXT:    v_cndmask_b32_e32 v0, 0, v0, vcc15; CHECK-NEXT:    v_or_b32_e32 v0, v0, v116; CHECK-NEXT:    s_setpc_b64 s[30:31]17  %sext = sext i8 %x to i3218  %select = select i1 %cond, i32 %sext, i32 019  %or = or i32 %select, %y20  ret i32 %or21}22