1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=wasm32-- | FileCheck %s
4 define i64 @PR58904() {
5 ; CHECK-LABEL: PR58904:
6 ; CHECK: .functype PR58904 () -> (i64)
7 ; CHECK-NEXT: # %bb.0: # %BB
8 ; CHECK-NEXT: global.get __stack_pointer
9 ; CHECK-NEXT: i32.const 16
11 ; CHECK-NEXT: i32.const 8
13 ; CHECK-NEXT: i64.extend_i32_u
14 ; CHECK-NEXT: # fallthrough-return
17 %C2 = ptrtoint ptr %A to i64
18 %B2 = urem i64 %C2, -1