Skip to content

Commit b9a3551

Browse files
committed
[FPEnv][BitcodeReader] Correct strictfp test.
Correct a strictfp test to follow the rules documented in the LangRef: https://llvm.org/docs/LangRef.html#constrained-floating-point-intrinsics This test needed the strictfp attribute added to a function definition. Test changes verified with D146845.
1 parent 21009f4 commit b9a3551

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/unittests/Bitcode/BitReaderTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ TEST(BitReaderTest, MaterializeConstrainedFPStrictFP) {
160160
LLVMContext Context;
161161
std::unique_ptr<Module> M = getLazyModuleFromAssembly(
162162
Context, Mem,
163-
"define double @foo(double %a) {\n"
163+
"define double @foo(double %a) strictfp {\n"
164164
" %result = call double @llvm.experimental.constrained.sqrt.f64(double "
165165
"%a, metadata !\"round.tonearest\", metadata !\"fpexcept.strict\") "
166166
"strictfp\n"

0 commit comments

Comments
 (0)