From 985f2f48bd5c20bc0ceb729502fe5e23eb711630 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Mon, 3 Jun 2019 16:21:58 +0000 Subject: [PATCH] [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 llvm-svn: 362414 --- llvm/test/CodeGen/WebAssembly/target-features.ll | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/test/CodeGen/WebAssembly/target-features.ll b/llvm/test/CodeGen/WebAssembly/target-features.ll index 6d9c392..8c05ca3 100644 --- a/llvm/test/CodeGen/WebAssembly/target-features.ll +++ b/llvm/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 } -- 2.7.4