[PATCH] D154639: [WebAssembly] Add frexp{f,l} libcall signatures

Derek Schuff via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 6 13:21:49 PDT 2023


dschuff updated this revision to Diff 537850.
dschuff added a comment.

Fix test


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D154639/new/

https://reviews.llvm.org/D154639

Files:
  llvm/test/CodeGen/WebAssembly/libcalls.ll


Index: llvm/test/CodeGen/WebAssembly/libcalls.ll
===================================================================
--- llvm/test/CodeGen/WebAssembly/libcalls.ll
+++ llvm/test/CodeGen/WebAssembly/libcalls.ll
@@ -241,36 +241,36 @@
 ; CHECK-NEXT:  # %bb.0:
 ; CHECK-NEXT:    global.get $push10=, __stack_pointer
 ; CHECK-NEXT:    i32.const $push11=, 16
-; CHECK-NEXT:    i32.sub $push15=, $pop10, $pop11
-; CHECK-NEXT:    local.tee $push14=, 3, $pop15
-; CHECK-NEXT:    global.set __stack_pointer, $pop14
-; CHECK-NEXT:    local.get $push20=, 3
-; CHECK-NEXT:    local.get $push19=, 0
-; CHECK-NEXT:    local.get $push16=, 0
-; CHECK-NEXT:    call $push0=, cos, $pop16
+; CHECK-NEXT:    i32.sub $push17=, $pop10, $pop11
+; CHECK-NEXT:    local.tee $push16=, 3, $pop17
+; CHECK-NEXT:    global.set __stack_pointer, $pop16
+; CHECK-NEXT:    local.get $push21=, 0
+; CHECK-NEXT:    local.get $push18=, 0
+; CHECK-NEXT:    call $push0=, cos, $pop18
 ; CHECK-NEXT:    call $push1=, log10, $pop0
-; CHECK-NEXT:    local.get $push17=, 1
-; CHECK-NEXT:    call $push2=, pow, $pop1, $pop17
-; CHECK-NEXT:    local.get $push18=, 2
-; CHECK-NEXT:    call $push3=, __powidf2, $pop2, $pop18
+; CHECK-NEXT:    local.get $push19=, 1
+; CHECK-NEXT:    call $push2=, pow, $pop1, $pop19
+; CHECK-NEXT:    local.get $push20=, 2
+; CHECK-NEXT:    call $push3=, __powidf2, $pop2, $pop20
 ; CHECK-NEXT:    call $push4=, log, $pop3
 ; CHECK-NEXT:    call $push5=, exp, $pop4
 ; CHECK-NEXT:    call $push6=, cbrt, $pop5
 ; CHECK-NEXT:    call $push7=, lround, $pop6
-; CHECK-NEXT:    call $push8=, ldexp, $pop19, $pop7
-; CHECK-NEXT:    call llvm.frexp.f64.i32, $pop20, $pop8
+; CHECK-NEXT:    call $push8=, ldexp, $pop21, $pop7
 ; CHECK-NEXT:    local.get $push22=, 3
-; CHECK-NEXT:    f64.load $push21=, 0($pop22)
-; CHECK-NEXT:    local.set 0, $pop21
-; CHECK-NEXT:    local.get $push23=, 3
-; CHECK-NEXT:    i32.load $push9=, 8($pop23)
-; CHECK-NEXT:    call escape_value, $pop9
+; CHECK-NEXT:    i32.const $push14=, 12
+; CHECK-NEXT:    i32.add $push15=, $pop22, $pop14
+; CHECK-NEXT:    call $push23=, frexp, $pop8, $pop15
+; CHECK-NEXT:    local.set 0, $pop23
 ; CHECK-NEXT:    local.get $push24=, 3
+; CHECK-NEXT:    i32.load $push9=, 12($pop24)
+; CHECK-NEXT:    call escape_value, $pop9
+; CHECK-NEXT:    local.get $push25=, 3
 ; CHECK-NEXT:    i32.const $push12=, 16
-; CHECK-NEXT:    i32.add $push13=, $pop24, $pop12
+; CHECK-NEXT:    i32.add $push13=, $pop25, $pop12
 ; CHECK-NEXT:    global.set __stack_pointer, $pop13
-; CHECK-NEXT:    local.get $push25=, 0
-; CHECK-NEXT:    return $pop25
+; CHECK-NEXT:    local.get $push26=, 0
+; CHECK-NEXT:    return $pop26
 
 
  %a = call double @llvm.cos.f64(double %x)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154639.537850.patch
Type: text/x-patch
Size: 2700 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230706/dab02588/attachment.bin>


More information about the llvm-commits mailing list