Skip to content

Commit 01c7de7

Browse files
committed
Run update_llc_test_checks.py
1 parent b0f73dc commit 01c7de7

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed
Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
12
; RUN: llc -mtriple=amdgcn-- -mcpu=gfx900 < %s | FileCheck %s
3+
; RUN: llc -global-isel=1 -mtriple=amdgcn-- -mcpu=gfx900 < %s | FileCheck %s
24

35
define amdgpu_ps i16 @abs_i16(i16 inreg %arg) {
46
; CHECK-LABEL: abs_i16:
5-
; CHECK: %bb.0:
6-
; CHECK-NEXT: s_sext_i32_i16 s0, s0
7-
; CHECK-NEXT: s_abs_i32 s0, s0
7+
; CHECK: ; %bb.0:
8+
; CHECK-NEXT: s_sext_i32_i16 s0, s0
9+
; CHECK-NEXT: s_abs_i32 s0, s0
10+
; CHECK-NEXT: ; return to shader part epilog
811

912
%res = call i16 @llvm.abs.i16(i16 %arg, i1 false)
1013
ret i16 %res
1114
}
1215

1316
define amdgpu_ps i16 @abs_i16_neg(i16 inreg %arg) {
1417
; CHECK-LABEL: abs_i16_neg:
15-
; CHECK: ; %bb.0:
16-
; CHECK-NEXT: s_sext_i32_i16 s0, s0
17-
; CHECK-NEXT: s_abs_i32 s0, s0
18-
; CHECK-NEXT: s_sub_i32 s0, 0, s0
18+
; CHECK: ; %bb.0:
19+
; CHECK-NEXT: s_sext_i32_i16 s0, s0
20+
; CHECK-NEXT: s_abs_i32 s0, s0
21+
; CHECK-NEXT: s_sub_i32 s0, 0, s0
22+
; CHECK-NEXT: ; return to shader part epilog
1923
%res1 = call i16 @llvm.abs.i16(i16 %arg, i1 false)
2024
%res2 = sub i16 0, %res1
2125
ret i16 %res2
22-
}
26+
}

0 commit comments

Comments
 (0)