Skip to content

Commit

Permalink
[AArch64] Add test case for pr55644. NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
topperc committed May 23, 2022
1 parent 760298a commit 75eb057
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions llvm/test/CodeGen/AArch64/pr55644.ll
@@ -0,0 +1,18 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=aarch64-apple-darwin | FileCheck %s

define i1 @f(i2 %0) {
; CHECK-LABEL: f:
; CHECK: ; %bb.0:
; CHECK-NEXT: sbfx w8, w0, #0, #2
; CHECK-NEXT: add w8, w8, w8
; CHECK-NEXT: lsl w9, w8, #30
; CHECK-NEXT: cmp w8, w9, asr #30
; CHECK-NEXT: cset w0, ne
; CHECK-NEXT: ret
%2 = call { i2, i1 } @llvm.smul.with.overflow.i2(i2 %0, i2 -2)
%3 = extractvalue { i2, i1 } %2, 1
ret i1 %3
}

declare { i2, i1 } @llvm.smul.with.overflow.i2(i2, i2)

0 comments on commit 75eb057

Please sign in to comment.