@@ -1479,14 +1479,14 @@ extern "C" __device__ double test_lgamma(double x) {
14791479
14801480// DEFAULT-LABEL: @test_llrintf(
14811481// DEFAULT-NEXT: entry:
1482- // DEFAULT-NEXT: [[CALL_I :%.*]] = tail call contract float @__ocml_rint_f32 (float noundef [[X:%.*]]) #[[ATTR14]]
1483- // DEFAULT-NEXT: [[CONV_I:%.*]] = fptosi float [[CALL_I ]] to i64
1482+ // DEFAULT-NEXT: [[TMP0 :%.*]] = tail call contract float @llvm.rint.f32 (float [[X:%.*]])
1483+ // DEFAULT-NEXT: [[CONV_I:%.*]] = fptosi float [[TMP0 ]] to i64
14841484// DEFAULT-NEXT: ret i64 [[CONV_I]]
14851485//
14861486// FINITEONLY-LABEL: @test_llrintf(
14871487// FINITEONLY-NEXT: entry:
1488- // FINITEONLY-NEXT: [[CALL_I :%.*]] = tail call nnan ninf contract nofpclass(nan inf) float @__ocml_rint_f32 (float noundef nofpclass(nan inf) [[X:%.*]]) #[[ATTR14]]
1489- // FINITEONLY-NEXT: [[CONV_I:%.*]] = fptosi float [[CALL_I ]] to i64
1488+ // FINITEONLY-NEXT: [[TMP0 :%.*]] = tail call nnan ninf contract float @llvm.rint.f32 (float [[X:%.*]])
1489+ // FINITEONLY-NEXT: [[CONV_I:%.*]] = fptosi float [[TMP0 ]] to i64
14901490// FINITEONLY-NEXT: ret i64 [[CONV_I]]
14911491//
14921492extern " C" __device__ long long int test_llrintf (float x) {
@@ -1495,14 +1495,14 @@ extern "C" __device__ long long int test_llrintf(float x) {
14951495
14961496// DEFAULT-LABEL: @test_llrint(
14971497// DEFAULT-NEXT: entry:
1498- // DEFAULT-NEXT: [[CALL_I :%.*]] = tail call contract double @__ocml_rint_f64 (double noundef [[X:%.*]]) #[[ATTR14]]
1499- // DEFAULT-NEXT: [[CONV_I:%.*]] = fptosi double [[CALL_I ]] to i64
1498+ // DEFAULT-NEXT: [[TMP0 :%.*]] = tail call contract double @llvm.rint.f64 (double [[X:%.*]])
1499+ // DEFAULT-NEXT: [[CONV_I:%.*]] = fptosi double [[TMP0 ]] to i64
15001500// DEFAULT-NEXT: ret i64 [[CONV_I]]
15011501//
15021502// FINITEONLY-LABEL: @test_llrint(
15031503// FINITEONLY-NEXT: entry:
1504- // FINITEONLY-NEXT: [[CALL_I :%.*]] = tail call nnan ninf contract nofpclass(nan inf) double @__ocml_rint_f64 (double noundef nofpclass(nan inf) [[X:%.*]]) #[[ATTR14]]
1505- // FINITEONLY-NEXT: [[CONV_I:%.*]] = fptosi double [[CALL_I ]] to i64
1504+ // FINITEONLY-NEXT: [[TMP0 :%.*]] = tail call nnan ninf contract double @llvm.rint.f64 (double [[X:%.*]])
1505+ // FINITEONLY-NEXT: [[CONV_I:%.*]] = fptosi double [[TMP0 ]] to i64
15061506// FINITEONLY-NEXT: ret i64 [[CONV_I]]
15071507//
15081508extern " C" __device__ long long int test_llrint (double x) {
@@ -1655,14 +1655,14 @@ extern "C" __device__ double test_logb(double x) {
16551655
16561656// DEFAULT-LABEL: @test_lrintf(
16571657// DEFAULT-NEXT: entry:
1658- // DEFAULT-NEXT: [[CALL_I :%.*]] = tail call contract float @__ocml_rint_f32 (float noundef [[X:%.*]]) #[[ATTR14]]
1659- // DEFAULT-NEXT: [[CONV_I:%.*]] = fptosi float [[CALL_I ]] to i64
1658+ // DEFAULT-NEXT: [[TMP0 :%.*]] = tail call contract float @llvm.rint.f32 (float [[X:%.*]])
1659+ // DEFAULT-NEXT: [[CONV_I:%.*]] = fptosi float [[TMP0 ]] to i64
16601660// DEFAULT-NEXT: ret i64 [[CONV_I]]
16611661//
16621662// FINITEONLY-LABEL: @test_lrintf(
16631663// FINITEONLY-NEXT: entry:
1664- // FINITEONLY-NEXT: [[CALL_I :%.*]] = tail call nnan ninf contract nofpclass(nan inf) float @__ocml_rint_f32 (float noundef nofpclass(nan inf) [[X:%.*]]) #[[ATTR14]]
1665- // FINITEONLY-NEXT: [[CONV_I:%.*]] = fptosi float [[CALL_I ]] to i64
1664+ // FINITEONLY-NEXT: [[TMP0 :%.*]] = tail call nnan ninf contract float @llvm.rint.f32 (float [[X:%.*]])
1665+ // FINITEONLY-NEXT: [[CONV_I:%.*]] = fptosi float [[TMP0 ]] to i64
16661666// FINITEONLY-NEXT: ret i64 [[CONV_I]]
16671667//
16681668extern " C" __device__ long int test_lrintf (float x) {
@@ -1671,14 +1671,14 @@ extern "C" __device__ long int test_lrintf(float x) {
16711671
16721672// DEFAULT-LABEL: @test_lrint(
16731673// DEFAULT-NEXT: entry:
1674- // DEFAULT-NEXT: [[CALL_I :%.*]] = tail call contract double @__ocml_rint_f64 (double noundef [[X:%.*]]) #[[ATTR14]]
1675- // DEFAULT-NEXT: [[CONV_I:%.*]] = fptosi double [[CALL_I ]] to i64
1674+ // DEFAULT-NEXT: [[TMP0 :%.*]] = tail call contract double @llvm.rint.f64 (double [[X:%.*]])
1675+ // DEFAULT-NEXT: [[CONV_I:%.*]] = fptosi double [[TMP0 ]] to i64
16761676// DEFAULT-NEXT: ret i64 [[CONV_I]]
16771677//
16781678// FINITEONLY-LABEL: @test_lrint(
16791679// FINITEONLY-NEXT: entry:
1680- // FINITEONLY-NEXT: [[CALL_I :%.*]] = tail call nnan ninf contract nofpclass(nan inf) double @__ocml_rint_f64 (double noundef nofpclass(nan inf) [[X:%.*]]) #[[ATTR14]]
1681- // FINITEONLY-NEXT: [[CONV_I:%.*]] = fptosi double [[CALL_I ]] to i64
1680+ // FINITEONLY-NEXT: [[TMP0 :%.*]] = tail call nnan ninf contract double @llvm.rint.f64 (double [[X:%.*]])
1681+ // FINITEONLY-NEXT: [[CONV_I:%.*]] = fptosi double [[TMP0 ]] to i64
16821682// FINITEONLY-NEXT: ret i64 [[CONV_I]]
16831683//
16841684extern " C" __device__ long int test_lrint (double x) {
@@ -2440,27 +2440,27 @@ extern "C" __device__ double test_rhypot(double x, double y) {
24402440
24412441// DEFAULT-LABEL: @test_rintf(
24422442// DEFAULT-NEXT: entry:
2443- // DEFAULT-NEXT: [[CALL_I :%.*]] = tail call contract float @__ocml_rint_f32 (float noundef [[X:%.*]]) #[[ATTR14]]
2444- // DEFAULT-NEXT: ret float [[CALL_I ]]
2443+ // DEFAULT-NEXT: [[TMP0 :%.*]] = tail call contract float @llvm.rint.f32 (float [[X:%.*]])
2444+ // DEFAULT-NEXT: ret float [[TMP0 ]]
24452445//
24462446// FINITEONLY-LABEL: @test_rintf(
24472447// FINITEONLY-NEXT: entry:
2448- // FINITEONLY-NEXT: [[CALL_I :%.*]] = tail call nnan ninf contract nofpclass(nan inf) float @__ocml_rint_f32 (float noundef nofpclass(nan inf) [[X:%.*]]) #[[ATTR14]]
2449- // FINITEONLY-NEXT: ret float [[CALL_I ]]
2448+ // FINITEONLY-NEXT: [[TMP0 :%.*]] = tail call nnan ninf contract float @llvm.rint.f32 (float [[X:%.*]])
2449+ // FINITEONLY-NEXT: ret float [[TMP0 ]]
24502450//
24512451extern " C" __device__ float test_rintf (float x) {
24522452 return rintf (x);
24532453}
24542454
24552455// DEFAULT-LABEL: @test_rint(
24562456// DEFAULT-NEXT: entry:
2457- // DEFAULT-NEXT: [[CALL_I :%.*]] = tail call contract double @__ocml_rint_f64 (double noundef [[X:%.*]]) #[[ATTR14]]
2458- // DEFAULT-NEXT: ret double [[CALL_I ]]
2457+ // DEFAULT-NEXT: [[TMP0 :%.*]] = tail call contract double @llvm.rint.f64 (double [[X:%.*]])
2458+ // DEFAULT-NEXT: ret double [[TMP0 ]]
24592459//
24602460// FINITEONLY-LABEL: @test_rint(
24612461// FINITEONLY-NEXT: entry:
2462- // FINITEONLY-NEXT: [[CALL_I :%.*]] = tail call nnan ninf contract nofpclass(nan inf) double @__ocml_rint_f64 (double noundef nofpclass(nan inf) [[X:%.*]]) #[[ATTR14]]
2463- // FINITEONLY-NEXT: ret double [[CALL_I ]]
2462+ // FINITEONLY-NEXT: [[TMP0 :%.*]] = tail call nnan ninf contract double @llvm.rint.f64 (double [[X:%.*]])
2463+ // FINITEONLY-NEXT: ret double [[TMP0 ]]
24642464//
24652465extern " C" __device__ double test_rint (double x) {
24662466 return rint (x);
0 commit comments