Skip to content

Commit 5e94080

Browse files
committed
AMDGPU: Regenerate test checks
Avoids spurious diffs from change in how metadata is checked in a future commit.
1 parent 0e823b0 commit 5e94080

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

llvm/test/CodeGen/AMDGPU/amdgpu-simplify-libcall-sqrt.ll

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ declare <16 x half> @_Z4sqrtDv16_Dh(<16 x half>)
2727
define float @test_sqrt_f32(float %arg) {
2828
; CHECK-LABEL: define float @test_sqrt_f32
2929
; CHECK-SAME: (float [[ARG:%.*]]) {
30-
; CHECK-NEXT: [[SQRT:%.*]] = tail call float @_Z4sqrtf(float [[ARG]]), !fpmath !0
30+
; CHECK-NEXT: [[SQRT:%.*]] = tail call float @_Z4sqrtf(float [[ARG]]), !fpmath [[META0:![0-9]+]]
3131
; CHECK-NEXT: ret float [[SQRT]]
3232
;
3333
%sqrt = tail call float @_Z4sqrtf(float %arg), !fpmath !0
@@ -37,7 +37,7 @@ define float @test_sqrt_f32(float %arg) {
3737
define <2 x float> @test_sqrt_v2f32(<2 x float> %arg) {
3838
; CHECK-LABEL: define <2 x float> @test_sqrt_v2f32
3939
; CHECK-SAME: (<2 x float> [[ARG:%.*]]) {
40-
; CHECK-NEXT: [[SQRT:%.*]] = tail call <2 x float> @_Z4sqrtDv2_f(<2 x float> [[ARG]]), !fpmath !0
40+
; CHECK-NEXT: [[SQRT:%.*]] = tail call <2 x float> @_Z4sqrtDv2_f(<2 x float> [[ARG]]), !fpmath [[META0]]
4141
; CHECK-NEXT: ret <2 x float> [[SQRT]]
4242
;
4343
%sqrt = tail call <2 x float> @_Z4sqrtDv2_f(<2 x float> %arg), !fpmath !0
@@ -47,7 +47,7 @@ define <2 x float> @test_sqrt_v2f32(<2 x float> %arg) {
4747
define <3 x float> @test_sqrt_v3f32(<3 x float> %arg) {
4848
; CHECK-LABEL: define <3 x float> @test_sqrt_v3f32
4949
; CHECK-SAME: (<3 x float> [[ARG:%.*]]) {
50-
; CHECK-NEXT: [[SQRT:%.*]] = tail call <3 x float> @_Z4sqrtDv3_f(<3 x float> [[ARG]]), !fpmath !0
50+
; CHECK-NEXT: [[SQRT:%.*]] = tail call <3 x float> @_Z4sqrtDv3_f(<3 x float> [[ARG]]), !fpmath [[META0]]
5151
; CHECK-NEXT: ret <3 x float> [[SQRT]]
5252
;
5353
%sqrt = tail call <3 x float> @_Z4sqrtDv3_f(<3 x float> %arg), !fpmath !0
@@ -57,7 +57,7 @@ define <3 x float> @test_sqrt_v3f32(<3 x float> %arg) {
5757
define <4 x float> @test_sqrt_v4f32(<4 x float> %arg) {
5858
; CHECK-LABEL: define <4 x float> @test_sqrt_v4f32
5959
; CHECK-SAME: (<4 x float> [[ARG:%.*]]) {
60-
; CHECK-NEXT: [[SQRT:%.*]] = tail call <4 x float> @_Z4sqrtDv4_f(<4 x float> [[ARG]]), !fpmath !0
60+
; CHECK-NEXT: [[SQRT:%.*]] = tail call <4 x float> @_Z4sqrtDv4_f(<4 x float> [[ARG]]), !fpmath [[META0]]
6161
; CHECK-NEXT: ret <4 x float> [[SQRT]]
6262
;
6363
%sqrt = tail call <4 x float> @_Z4sqrtDv4_f(<4 x float> %arg), !fpmath !0
@@ -67,7 +67,7 @@ define <4 x float> @test_sqrt_v4f32(<4 x float> %arg) {
6767
define <8 x float> @test_sqrt_v8f32(<8 x float> %arg) {
6868
; CHECK-LABEL: define <8 x float> @test_sqrt_v8f32
6969
; CHECK-SAME: (<8 x float> [[ARG:%.*]]) {
70-
; CHECK-NEXT: [[SQRT:%.*]] = tail call <8 x float> @_Z4sqrtDv8_f(<8 x float> [[ARG]]), !fpmath !0
70+
; CHECK-NEXT: [[SQRT:%.*]] = tail call <8 x float> @_Z4sqrtDv8_f(<8 x float> [[ARG]]), !fpmath [[META0]]
7171
; CHECK-NEXT: ret <8 x float> [[SQRT]]
7272
;
7373
%sqrt = tail call <8 x float> @_Z4sqrtDv8_f(<8 x float> %arg), !fpmath !0
@@ -77,7 +77,7 @@ define <8 x float> @test_sqrt_v8f32(<8 x float> %arg) {
7777
define <16 x float> @test_sqrt_v16f32(<16 x float> %arg) {
7878
; CHECK-LABEL: define <16 x float> @test_sqrt_v16f32
7979
; CHECK-SAME: (<16 x float> [[ARG:%.*]]) {
80-
; CHECK-NEXT: [[SQRT:%.*]] = tail call <16 x float> @_Z4sqrtDv16_f(<16 x float> [[ARG]]), !fpmath !0
80+
; CHECK-NEXT: [[SQRT:%.*]] = tail call <16 x float> @_Z4sqrtDv16_f(<16 x float> [[ARG]]), !fpmath [[META0]]
8181
; CHECK-NEXT: ret <16 x float> [[SQRT]]
8282
;
8383
%sqrt = tail call <16 x float> @_Z4sqrtDv16_f(<16 x float> %arg), !fpmath !0
@@ -267,7 +267,7 @@ define <16 x half> @test_sqrt_v16f16(<16 x half> %arg) {
267267
define float @test_sqrt_f32_nobuiltin_callsite(float %arg) {
268268
; CHECK-LABEL: define float @test_sqrt_f32_nobuiltin_callsite
269269
; CHECK-SAME: (float [[ARG:%.*]]) {
270-
; CHECK-NEXT: [[SQRT:%.*]] = tail call float @_Z4sqrtf(float [[ARG]]) #[[ATTR2:[0-9]+]], !fpmath !0
270+
; CHECK-NEXT: [[SQRT:%.*]] = tail call float @_Z4sqrtf(float [[ARG]]) #[[ATTR2:[0-9]+]], !fpmath [[META0]]
271271
; CHECK-NEXT: ret float [[SQRT]]
272272
;
273273
%sqrt = tail call float @_Z4sqrtf(float %arg) #0, !fpmath !0
@@ -277,7 +277,7 @@ define float @test_sqrt_f32_nobuiltin_callsite(float %arg) {
277277
define <2 x float> @test_sqrt_v2f32_nobuiltin_callsite(<2 x float> %arg) {
278278
; CHECK-LABEL: define <2 x float> @test_sqrt_v2f32_nobuiltin_callsite
279279
; CHECK-SAME: (<2 x float> [[ARG:%.*]]) {
280-
; CHECK-NEXT: [[SQRT:%.*]] = tail call <2 x float> @_Z4sqrtDv2_f(<2 x float> [[ARG]]) #[[ATTR2]], !fpmath !0
280+
; CHECK-NEXT: [[SQRT:%.*]] = tail call <2 x float> @_Z4sqrtDv2_f(<2 x float> [[ARG]]) #[[ATTR2]], !fpmath [[META0]]
281281
; CHECK-NEXT: ret <2 x float> [[SQRT]]
282282
;
283283
%sqrt = tail call <2 x float> @_Z4sqrtDv2_f(<2 x float> %arg) #0, !fpmath !0
@@ -308,7 +308,7 @@ define <2 x float> @test_sqrt_cr_v2f32_nobuiltin_callsite(<2 x float> %arg) {
308308
define float @test_sqrt_f32_nobuiltins(float %arg) #1 {
309309
; CHECK-LABEL: define float @test_sqrt_f32_nobuiltins
310310
; CHECK-SAME: (float [[ARG:%.*]]) #[[ATTR0:[0-9]+]] {
311-
; CHECK-NEXT: [[SQRT:%.*]] = tail call float @_Z4sqrtf(float [[ARG]]) #[[ATTR2]], !fpmath !0
311+
; CHECK-NEXT: [[SQRT:%.*]] = tail call float @_Z4sqrtf(float [[ARG]]) #[[ATTR2]], !fpmath [[META0]]
312312
; CHECK-NEXT: ret float [[SQRT]]
313313
;
314314
%sqrt = tail call float @_Z4sqrtf(float %arg) #0, !fpmath !0
@@ -318,7 +318,7 @@ define float @test_sqrt_f32_nobuiltins(float %arg) #1 {
318318
define <2 x float> @test_sqrt_v2f32_nobuiltins(<2 x float> %arg) #1 {
319319
; CHECK-LABEL: define <2 x float> @test_sqrt_v2f32_nobuiltins
320320
; CHECK-SAME: (<2 x float> [[ARG:%.*]]) #[[ATTR0]] {
321-
; CHECK-NEXT: [[SQRT:%.*]] = tail call <2 x float> @_Z4sqrtDv2_f(<2 x float> [[ARG]]) #[[ATTR2]], !fpmath !0
321+
; CHECK-NEXT: [[SQRT:%.*]] = tail call <2 x float> @_Z4sqrtDv2_f(<2 x float> [[ARG]]) #[[ATTR2]], !fpmath [[META0]]
322322
; CHECK-NEXT: ret <2 x float> [[SQRT]]
323323
;
324324
%sqrt = tail call <2 x float> @_Z4sqrtDv2_f(<2 x float> %arg) #0, !fpmath !0
@@ -348,7 +348,7 @@ define <2 x float> @test_sqrt_cr_v2f32_nobuiltins(<2 x float> %arg) #1 {
348348
define float @test_sqrt_f32_preserve_flags(float %arg) {
349349
; CHECK-LABEL: define float @test_sqrt_f32_preserve_flags
350350
; CHECK-SAME: (float [[ARG:%.*]]) {
351-
; CHECK-NEXT: [[SQRT:%.*]] = tail call nnan ninf float @_Z4sqrtf(float [[ARG]]), !fpmath !0
351+
; CHECK-NEXT: [[SQRT:%.*]] = tail call nnan ninf float @_Z4sqrtf(float [[ARG]]), !fpmath [[META0]]
352352
; CHECK-NEXT: ret float [[SQRT]]
353353
;
354354
%sqrt = tail call nnan ninf float @_Z4sqrtf(float %arg), !fpmath !0
@@ -358,7 +358,7 @@ define float @test_sqrt_f32_preserve_flags(float %arg) {
358358
define <2 x float> @test_sqrt_v2f32_preserve_flags(<2 x float> %arg) {
359359
; CHECK-LABEL: define <2 x float> @test_sqrt_v2f32_preserve_flags
360360
; CHECK-SAME: (<2 x float> [[ARG:%.*]]) {
361-
; CHECK-NEXT: [[SQRT:%.*]] = tail call nnan nsz contract <2 x float> @_Z4sqrtDv2_f(<2 x float> [[ARG]]), !fpmath !0
361+
; CHECK-NEXT: [[SQRT:%.*]] = tail call nnan nsz contract <2 x float> @_Z4sqrtDv2_f(<2 x float> [[ARG]]), !fpmath [[META0]]
362362
; CHECK-NEXT: ret <2 x float> [[SQRT]]
363363
;
364364
%sqrt = tail call contract nsz nnan <2 x float> @_Z4sqrtDv2_f(<2 x float> %arg), !fpmath !0
@@ -368,7 +368,7 @@ define <2 x float> @test_sqrt_v2f32_preserve_flags(<2 x float> %arg) {
368368
define float @test_sqrt_f32_preserve_flags_md(float %arg) {
369369
; CHECK-LABEL: define float @test_sqrt_f32_preserve_flags_md
370370
; CHECK-SAME: (float [[ARG:%.*]]) {
371-
; CHECK-NEXT: [[SQRT:%.*]] = tail call nnan ninf float @_Z4sqrtf(float [[ARG]]), !fpmath !0, !foo !1
371+
; CHECK-NEXT: [[SQRT:%.*]] = tail call nnan ninf float @_Z4sqrtf(float [[ARG]]), !fpmath [[META0]], !foo [[META1:![0-9]+]]
372372
; CHECK-NEXT: ret float [[SQRT]]
373373
;
374374
%sqrt = tail call nnan ninf float @_Z4sqrtf(float %arg), !fpmath !0, !foo !1
@@ -378,7 +378,7 @@ define float @test_sqrt_f32_preserve_flags_md(float %arg) {
378378
define <2 x float> @test_sqrt_v2f32_preserve_flags_md(<2 x float> %arg) {
379379
; CHECK-LABEL: define <2 x float> @test_sqrt_v2f32_preserve_flags_md
380380
; CHECK-SAME: (<2 x float> [[ARG:%.*]]) {
381-
; CHECK-NEXT: [[SQRT:%.*]] = tail call nnan nsz contract <2 x float> @_Z4sqrtDv2_f(<2 x float> [[ARG]]), !fpmath !0, !foo !1
381+
; CHECK-NEXT: [[SQRT:%.*]] = tail call nnan nsz contract <2 x float> @_Z4sqrtDv2_f(<2 x float> [[ARG]]), !fpmath [[META0]], !foo [[META1]]
382382
; CHECK-NEXT: ret <2 x float> [[SQRT]]
383383
;
384384
%sqrt = tail call contract nsz nnan <2 x float> @_Z4sqrtDv2_f(<2 x float> %arg), !fpmath !0, !foo !1
@@ -422,7 +422,7 @@ define float @test_libm_sqrt_f32(float %arg) {
422422
define float @test_libm_sqrt_f32_fpmath(float %arg) {
423423
; CHECK-LABEL: define float @test_libm_sqrt_f32_fpmath
424424
; CHECK-SAME: (float [[ARG:%.*]]) {
425-
; CHECK-NEXT: [[SQRT:%.*]] = tail call float @sqrtf(float [[ARG]]), !fpmath !0
425+
; CHECK-NEXT: [[SQRT:%.*]] = tail call float @sqrtf(float [[ARG]]), !fpmath [[META0]]
426426
; CHECK-NEXT: ret float [[SQRT]]
427427
;
428428
%sqrt = tail call float @sqrtf(float %arg), !fpmath !0
@@ -442,7 +442,7 @@ define double @test_libm_sqrt_f64(double %arg) {
442442
define double @test_libm_sqrt_f64_fpmath(double %arg) {
443443
; CHECK-LABEL: define double @test_libm_sqrt_f64_fpmath
444444
; CHECK-SAME: (double [[ARG:%.*]]) {
445-
; CHECK-NEXT: [[SQRT:%.*]] = tail call double @sqrt(double [[ARG]]), !fpmath !0
445+
; CHECK-NEXT: [[SQRT:%.*]] = tail call double @sqrt(double [[ARG]]), !fpmath [[META0]]
446446
; CHECK-NEXT: ret double [[SQRT]]
447447
;
448448
%sqrt = tail call double @sqrt(double %arg), !fpmath !0

0 commit comments

Comments
 (0)