[llvm] a387882 - Fix errors in use of strictfp attribute.
Kevin P. Neal via llvm-commits
llvm-commits at lists.llvm.org
Fri May 29 09:22:41 PDT 2020
Author: Kevin P. Neal
Date: 2020-05-29T12:22:21-04:00
New Revision: a38788201e44c5eb1abf3c71d0cad22d291dc9a3
URL: https://github.com/llvm/llvm-project/commit/a38788201e44c5eb1abf3c71d0cad22d291dc9a3
DIFF: https://github.com/llvm/llvm-project/commit/a38788201e44c5eb1abf3c71d0cad22d291dc9a3.diff
LOG: Fix errors in use of strictfp attribute.
Errors spotted with use of: https://reviews.llvm.org/D68233
Added:
Modified:
llvm/test/CodeGen/AArch64/strict-fp-int-promote.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/AArch64/strict-fp-int-promote.ll b/llvm/test/CodeGen/AArch64/strict-fp-int-promote.ll
index 296f058d1928..6a47fee82425 100644
--- a/llvm/test/CodeGen/AArch64/strict-fp-int-promote.ll
+++ b/llvm/test/CodeGen/AArch64/strict-fp-int-promote.ll
@@ -29,9 +29,9 @@ define i32 @test() #0 {
; SUBOPTIMAL-NEXT: and w0, w8, #0x1
; SUBOPTIMAL-NEXT: ret
entry:
- %conv = call float @llvm.experimental.constrained.sitofp.f32.i32(i32 1, metadata !"round.tonearest", metadata !"fpexcept.strict")
- %conv1 = call float @llvm.experimental.constrained.sitofp.f32.i16(i16 1, metadata !"round.tonearest", metadata !"fpexcept.strict")
- %cmp = call i1 @llvm.experimental.constrained.fcmp.f32(float %conv, float %conv1, metadata !"oeq", metadata !"fpexcept.strict")
+ %conv = call float @llvm.experimental.constrained.sitofp.f32.i32(i32 1, metadata !"round.tonearest", metadata !"fpexcept.strict") #1
+ %conv1 = call float @llvm.experimental.constrained.sitofp.f32.i16(i16 1, metadata !"round.tonearest", metadata !"fpexcept.strict") #1
+ %cmp = call i1 @llvm.experimental.constrained.fcmp.f32(float %conv, float %conv1, metadata !"oeq", metadata !"fpexcept.strict") #1
%conv2 = zext i1 %cmp to i32
ret i32 %conv2
}
@@ -57,11 +57,12 @@ define i32 @test2() #0 {
; SUBOPTIMAL-NEXT: and w0, w8, #0x1
; SUBOPTIMAL-NEXT: ret
entry:
- %conv = call float @llvm.experimental.constrained.sitofp.f32.i32(i32 1, metadata !"round.tonearest", metadata !"fpexcept.strict")
- %conv1 = call float @llvm.experimental.constrained.uitofp.f32.i16(i16 1, metadata !"round.tonearest", metadata !"fpexcept.strict")
- %cmp = call i1 @llvm.experimental.constrained.fcmp.f32(float %conv, float %conv1, metadata !"oeq", metadata !"fpexcept.strict")
+ %conv = call float @llvm.experimental.constrained.sitofp.f32.i32(i32 1, metadata !"round.tonearest", metadata !"fpexcept.strict") #1
+ %conv1 = call float @llvm.experimental.constrained.uitofp.f32.i16(i16 1, metadata !"round.tonearest", metadata !"fpexcept.strict") #1
+ %cmp = call i1 @llvm.experimental.constrained.fcmp.f32(float %conv, float %conv1, metadata !"oeq", metadata !"fpexcept.strict") #1
%conv2 = zext i1 %cmp to i32
ret i32 %conv2
}
-attributes #0 = { noinline optnone }
+attributes #0 = { strictfp noinline optnone }
+attributes #1 = { strictfp }
More information about the llvm-commits
mailing list