1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/test/CodeGen/PowerPC/vec_urem_const.ll
Ulrich Weigand 31eb9d13f1 [PowerPC] Add target triple to vec_urem_const.ll test case
This should hopefully fix build bots on other architectures.

llvm-svn: 214721
2014-08-04 14:55:26 +00:00

14 lines
425 B
LLVM

; RUN: llc -mcpu=pwr6 -mattr=+altivec < %s
target datalayout = "e-m:e-i64:64-n32:64"
target triple = "powerpc64le-unknown-linux-gnu"
; Common code used to replace the urem by a mulhu, and compilation would
; then crash since mulhu isn't supported on vector types.
define <4 x i32> @test(<4 x i32> %x) {
entry:
%0 = urem <4 x i32> %x, <i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647>
ret <4 x i32> %0
}