1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00
llvm-mirror/test/Transforms/InstCombine/2008-12-17-SRemNegConstVec.ll
2019-07-20 21:34:00 +00:00

13 lines
352 B
LLVM

; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -instcombine -S | FileCheck %s
; PR2756
define <2 x i8> @foo(<2 x i8> %x) {
; CHECK-LABEL: @foo(
; CHECK-NEXT: [[A:%.*]] = srem <2 x i8> [[X:%.*]], <i8 2, i8 2>
; CHECK-NEXT: ret <2 x i8> [[A]]
;
%A = srem <2 x i8> %x, <i8 2, i8 -2>
ret <2 x i8> %A
}