Skip to content

Commit 256ef01

Browse files
author
Thorsten Schütt
committed
fix tests
1 parent 717e33e commit 256ef01

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.set.inactive.ll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,11 @@ define amdgpu_kernel void @set_inactive_scc(ptr addrspace(1) %out, i32 %in, <4 x
9595
; GCN-NEXT: s_mov_b64 exec, s[2:3]
9696
; GCN-NEXT: s_waitcnt lgkmcnt(0)
9797
; GCN-NEXT: s_cmp_lg_u32 s4, 56
98+
; GCN-NEXT: s_cselect_b32 s3, 1, 0
99+
; GCN-NEXT: s_and_b32 s3, s3, 1
98100
; GCN-NEXT: v_mov_b32_e32 v1, v0
99101
; GCN-NEXT: s_mov_b32 s2, 1
102+
; GCN-NEXT: s_cmp_lg_u32 s3, 0
100103
; GCN-NEXT: s_cbranch_scc0 .LBB4_2
101104
; GCN-NEXT: ; %bb.1: ; %.one
102105
; GCN-NEXT: v_add_u32_e32 v2, vcc, 1, v1

llvm/test/CodeGen/AMDGPU/GlobalISel/xnor.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
Git s; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
32
; RUN: llc -global-isel -mtriple=amdgcn -mcpu=gfx700 -verify-machineinstrs < %s | FileCheck -check-prefixes=GCN,GFX7 %s
43
; RUN: llc -global-isel -mtriple=amdgcn -mcpu=gfx801 -verify-machineinstrs < %s | FileCheck -check-prefixes=GCN,GFX8 %s
54
; RUN: llc -global-isel -mtriple=amdgcn -mcpu=gfx900 -verify-machineinstrs < %s | FileCheck -check-prefixes=GCN,GFX900 %s

llvm/test/CodeGen/RISCV/GlobalISel/alu-roundtrip-rv64.ll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ entry:
105105
define i64 @zext_nneg_i32_i64(i32 %a) {
106106
; RV64IM-LABEL: zext_nneg_i32_i64:
107107
; RV64IM: # %bb.0: # %entry
108-
; RV64IM-NEXT: sext.w a0, a0
108+
; RV64IM-NEXT: slli a0, a0, 32
109+
; RV64IM-NEXT: srli a0, a0, 32
109110
; RV64IM-NEXT: ret
110111
entry:
111112
%b = zext nneg i32 %a to i64

llvm/test/CodeGen/RISCV/GlobalISel/combine.mir

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ body: |
88
99
; RV64-LABEL: name: nneg_zext
1010
; RV64: [[COPY:%[0-9]+]]:_(s64) = COPY $x10
11-
; RV64-NEXT: [[TRUNC:%[0-9]+]]:_(s32) = G_TRUNC [[COPY]](s64)
12-
; RV64-NEXT: [[SEXT:%[0-9]+]]:_(s64) = G_SEXT [[TRUNC]](s32)
13-
; RV64-NEXT: $x10 = COPY [[SEXT]](s64)
11+
; RV64-NEXT: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 4294967295
12+
; RV64-NEXT: [[AND:%[0-9]+]]:_(s64) = G_AND [[COPY]], [[C]]
13+
; RV64-NEXT: $x10 = COPY [[AND]](s64)
1414
; RV64-NEXT: PseudoRET implicit $x10
1515
%0:_(s64) = COPY $x10
1616
%2:_(s32) = G_TRUNC %0

0 commit comments

Comments
 (0)