93 lines · plain
1; RUN: llc < %s -mtriple=wasm32 -wasm-keep-registers | FileCheck %s --check-prefixes=WASM322; NOTE: did not compile on wasm64 at the time the test was created!3 4define { i128, i8 } @muloti_test(i128 %l, i128 %r) unnamed_addr #0 {5; WASM32-LABEL: muloti_test6; WASM32: global.get $push16=, __stack_pointer7; WASM32: i32.const $push17=, 488; WASM32: i32.sub $push38=, $pop16, $pop179; WASM32: local.tee $push37=, 5, $pop3810; WASM32: global.set __stack_pointer, $pop3711; WASM32: local.get $push39=, 512; WASM32: i32.const $push22=, 3213; WASM32: i32.add $push23=, $pop39, $pop2214; WASM32: local.get $push41=, 115; WASM32: i64.const $push0=, 016; WASM32: local.get $push40=, 317; WASM32: i64.const $push36=, 018; WASM32: call __multi3, $pop23, $pop41, $pop0, $pop40, $pop3619; WASM32: local.get $push42=, 520; WASM32: i32.const $push20=, 1621; WASM32: i32.add $push21=, $pop42, $pop2022; WASM32: local.get $push44=, 423; WASM32: i64.const $push35=, 024; WASM32: local.get $push43=, 125; WASM32: i64.const $push34=, 026; WASM32: call __multi3, $pop21, $pop44, $pop35, $pop43, $pop3427; WASM32: local.get $push47=, 528; WASM32: local.get $push46=, 229; WASM32: i64.const $push33=, 030; WASM32: local.get $push45=, 331; WASM32: i64.const $push32=, 032; WASM32: call __multi3, $pop47, $pop46, $pop33, $pop45, $pop3233; WASM32: local.get $push49=, 034; WASM32: local.get $push48=, 535; WASM32: i64.load $push1=, 32($pop48)36; WASM32: i64.store 0($pop49), $pop137; WASM32: local.get $push53=, 038; WASM32: local.get $push50=, 539; WASM32: i64.load $push31=, 40($pop50)40; WASM32: local.tee $push30=, 3, $pop3141; WASM32: local.get $push51=, 542; WASM32: i64.load $push3=, 0($pop51)43; WASM32: local.get $push52=, 544; WASM32: i64.load $push2=, 16($pop52)45; WASM32: i64.add $push4=, $pop3, $pop246; WASM32: i64.add $push29=, $pop30, $pop447; WASM32: local.tee $push28=, 1, $pop2948; WASM32: i64.store 8($pop53), $pop2849; WASM32: local.get $push60=, 050; WASM32: local.get $push54=, 251; WASM32: i64.const $push27=, 052; WASM32: i64.ne $push6=, $pop54, $pop2753; WASM32: local.get $push55=, 454; WASM32: i64.const $push26=, 055; WASM32: i64.ne $push5=, $pop55, $pop2656; WASM32: i32.and $push7=, $pop6, $pop557; WASM32: local.get $push56=, 558; WASM32: i64.load $push8=, 8($pop56)59; WASM32: i64.const $push25=, 060; WASM32: i64.ne $push9=, $pop8, $pop2561; WASM32: i32.or $push10=, $pop7, $pop962; WASM32: local.get $push57=, 563; WASM32: i64.load $push11=, 24($pop57)64; WASM32: i64.const $push24=, 065; WASM32: i64.ne $push12=, $pop11, $pop2466; WASM32: i32.or $push13=, $pop10, $pop1267; WASM32: local.get $push59=, 168; WASM32: local.get $push58=, 369; WASM32: i64.lt_u $push14=, $pop59, $pop5870; WASM32: i32.or $push15=, $pop13, $pop1471; WASM32: i32.store8 16($pop60), $pop1572; WASM32: local.get $push61=, 573; WASM32: i32.const $push18=, 4874; WASM32: i32.add $push19=, $pop61, $pop1875; WASM32: global.set __stack_pointer, $pop1976 77start:78 %0 = tail call { i128, i1 } @llvm.umul.with.overflow.i128(i128 %l, i128 %r) #279 %1 = extractvalue { i128, i1 } %0, 080 %2 = extractvalue { i128, i1 } %0, 181 %3 = zext i1 %2 to i882 %4 = insertvalue { i128, i8 } undef, i128 %1, 083 %5 = insertvalue { i128, i8 } %4, i8 %3, 184 ret { i128, i8 } %585}86 87; Function Attrs: nounwind readnone speculatable88declare { i128, i1 } @llvm.umul.with.overflow.i128(i128, i128) #189 90attributes #0 = { nounwind readnone uwtable }91attributes #1 = { nounwind readnone speculatable }92attributes #2 = { nounwind }93