1 ; RUN: llc < %s -mtriple=thumbv6m-none-eabi | FileCheck %s 2 3 define i1 @signed_multiplication_did_overflow(i32, i32) { 4 ; CHECK-LABEL: signed_multiplication_did_overflow: 5 entry-block: 6 %2 = tail call { i32, i1 } @llvm.smul.with.overflow.i32(i32 %0, i32 %1) 7 %3 = extractvalue { i32, i1 } %2, 1 8 ret i1 %3 9 10 ; CHECK: mov r2, r1 11 ; CHECK: asrs r1, r0, #31 12 ; CHECK: asrs r3, r2, #31 13 ; CHECK: bl __aeabi_lmul 14 } 15 16 declare { i32, i1 } @llvm.smul.with.overflow.i32(i32, i32) 17