Skip to content

Commit 8913345

Browse files
committed
Fix accidentally modified test and temporarily re-enstate pattern match
1 parent b7a0c0e commit 8913345

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

llvm/lib/Target/AMDGPU/SIInstructions.td

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2376,6 +2376,10 @@ def : AMDGPUPat <
23762376
$src1), sub1)
23772377
>;
23782378

2379+
def : AMDGPUPat <
2380+
(fneg (select i1:$src0, (f32 (bitconvert i32:$src1)), (f32 (bitconvert i32:$src2)))),
2381+
(V_CNDMASK_B32_e64 (i32 1), $src2, (i32 1), $src1, $src0)>;
2382+
23792383
let True16Predicate = NotHasTrue16BitInsts in {
23802384
def : ROTRPattern <V_ALIGNBIT_B32_e64>;
23812385

llvm/test/CodeGen/AMDGPU/fneg-modifier-casting.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1759,4 +1759,4 @@ bb5: ; preds = %bb, %.entry
17591759

17601760
declare <2 x i32> @llvm.amdgcn.s.buffer.load.v2i32(<4 x i32>, i32, i32 immarg) #0
17611761

1762-
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(none) }
1762+
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(none) }

0 commit comments

Comments
 (0)