Skip to content

Commit 2d654df

Browse files
committed
[AMDGPU][NFC] Simplify test file for amdgcn intrinsics
Summary: Remove unchecked attribute in the call site and use FileCheck String Substitution for `convergent` check. Reviewers: nhaehnle Reviewed By: nhaehnle Subscribers: kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D64901 llvm-svn: 366781
1 parent 341a68c commit 2d654df

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/test/Transforms/InstCombine/AMDGPU/amdgcn-intrinsics.ll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ define double @test_constant_fold_rcp_f64_half() nounwind {
5050

5151
define float @test_constant_fold_rcp_f32_43() nounwind {
5252
; CHECK-LABEL: @test_constant_fold_rcp_f32_43(
53-
; CHECK-NEXT: [[VAL:%.*]] = call float @llvm.amdgcn.rcp.f32(float 4.300000e+01) #5
53+
; CHECK-NEXT: [[VAL:%.*]] = call float @llvm.amdgcn.rcp.f32(float 4.300000e+01)
5454
; CHECK-NEXT: ret float [[VAL]]
5555
;
5656
%val = call float @llvm.amdgcn.rcp.f32(float 4.300000e+01) nounwind readnone
@@ -59,7 +59,7 @@ define float @test_constant_fold_rcp_f32_43() nounwind {
5959

6060
define double @test_constant_fold_rcp_f64_43() nounwind {
6161
; CHECK-LABEL: @test_constant_fold_rcp_f64_43(
62-
; CHECK-NEXT: [[VAL:%.*]] = call double @llvm.amdgcn.rcp.f64(double 4.300000e+01) #5
62+
; CHECK-NEXT: [[VAL:%.*]] = call double @llvm.amdgcn.rcp.f64(double 4.300000e+01)
6363
; CHECK-NEXT: ret double [[VAL]]
6464
;
6565
%val = call double @llvm.amdgcn.rcp.f64(double 4.300000e+01) nounwind readnone
@@ -1655,7 +1655,7 @@ define i64 @icmp_constant_inputs_false() {
16551655

16561656
define i64 @icmp_constant_inputs_true() {
16571657
; CHECK-LABEL: @icmp_constant_inputs_true(
1658-
; CHECK-NEXT: [[RESULT:%.*]] = call i64 @llvm.read_register.i64(metadata !0) #6
1658+
; CHECK-NEXT: [[RESULT:%.*]] = call i64 @llvm.read_register.i64(metadata !0) [[CONVERGENT:#[0-9]*]]
16591659
; CHECK-NEXT: ret i64 [[RESULT]]
16601660
;
16611661
%result = call i64 @llvm.amdgcn.icmp.i64.i32(i32 9, i32 8, i32 34)
@@ -2362,7 +2362,7 @@ define i64 @fcmp_constant_inputs_false() {
23622362

23632363
define i64 @fcmp_constant_inputs_true() {
23642364
; CHECK-LABEL: @fcmp_constant_inputs_true(
2365-
; CHECK-NEXT: [[RESULT:%.*]] = call i64 @llvm.read_register.i64(metadata !0) #6
2365+
; CHECK-NEXT: [[RESULT:%.*]] = call i64 @llvm.read_register.i64(metadata !0) [[CONVERGENT]]
23662366
; CHECK-NEXT: ret i64 [[RESULT]]
23672367
;
23682368
%result = call i64 @llvm.amdgcn.fcmp.i64.f32(float 2.0, float 4.0, i32 4)
@@ -2655,5 +2655,5 @@ define amdgpu_kernel void @update_dpp_undef_old(i32 addrspace(1)* %out, i32 %in1
26552655
ret void
26562656
}
26572657

2658-
; CHECK: attributes #6 = { convergent }
2658+
; CHECK: attributes [[CONVERGENT]] = { convergent }
26592659

0 commit comments

Comments
 (0)