mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
f6ef7f16ab
llvm-svn: 366643
17 lines
416 B
LLVM
17 lines
416 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
; RUN: opt < %s -instcombine -S | FileCheck %s
|
|
; PR3439
|
|
|
|
define i32 @a(i32 %x) nounwind {
|
|
; CHECK-LABEL: @a(
|
|
; CHECK-NEXT: entry:
|
|
; CHECK-NEXT: [[REM:%.*]] = srem i32 [[X:%.*]], 2
|
|
; CHECK-NEXT: [[AND:%.*]] = and i32 [[REM]], 2
|
|
; CHECK-NEXT: ret i32 [[AND]]
|
|
;
|
|
entry:
|
|
%rem = srem i32 %x, 2
|
|
%and = and i32 %rem, 2
|
|
ret i32 %and
|
|
}
|