From: Simon Pilgrim Date: Mon, 3 Jun 2019 16:21:58 +0000 (+0000) Subject: [WebAssembly] Remove fptosi(undef) and fptoui(undef) from reduced test case. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f9dcdd27ca8ef8ea5e1e7c06ebf7eac6bf25a351;p=llvm [WebAssembly] Remove fptosi(undef) and fptoui(undef) from reduced test case. Pre-commit for D62811 - which adds DAG fpto[us]i(undef) --> undef constant fold git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362414 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/WebAssembly/target-features.ll b/test/CodeGen/WebAssembly/target-features.ll index 6d9c3929382..8c05ca3b123 100644 --- a/test/CodeGen/WebAssembly/target-features.ll +++ b/test/CodeGen/WebAssembly/target-features.ll @@ -9,16 +9,16 @@ target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128" target triple = "wasm32-unknown-unknown" -define void @foo(i32* %p1) #0 { +define void @foo(i32* %p1, float %f2) #0 { %a = atomicrmw min i32* undef, i32 42 seq_cst - %v = fptoui float undef to i32 + %v = fptoui float %f2 to i32 store i32 %v, i32* %p1 ret void } -define void @bar(i32* %p1) #1 { +define void @bar(i32* %p1, float %f2) #1 { %a = atomicrmw min i32* undef, i32 42 seq_cst - %v = fptoui float undef to i32 + %v = fptoui float %f2 to i32 store i32 %v, i32* %p1 ret void }