mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
31eb9d13f1
This should hopefully fix build bots on other architectures. llvm-svn: 214721
14 lines
425 B
LLVM
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
|
|
}
|