mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 20:29:53 +00:00
d2c7981604
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288509 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
391 B
LLVM
14 lines
391 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
; RUN: opt < %s -instcombine -S | FileCheck %s
|
|
|
|
define <4 x i32> @foo(<4 x i32> %t, <4 x i32> %u) {
|
|
; CHECK-LABEL: @foo(
|
|
; CHECK-NEXT: [[K:%.*]] = srem <4 x i32> %t, %u
|
|
; CHECK-NEXT: ret <4 x i32> [[K]]
|
|
;
|
|
%k = sdiv <4 x i32> %t, %u
|
|
%l = mul <4 x i32> %k, %u
|
|
%m = sub <4 x i32> %t, %l
|
|
ret <4 x i32> %m
|
|
}
|