mirror of
https://github.com/RPCSX/llvm.git
synced 2026-01-31 01:05:23 +01:00
------------------------------------------------------------------------ r214721 | uweigand | 2014-08-04 09:55:26 -0500 (Mon, 04 Aug 2014) | 4 lines [PowerPC] Add target triple to vec_urem_const.ll test case This should hopefully fix build bots on other architectures. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_35@214820 91177308-0d34-0410-b5e6-96231b3b80d8
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
|
|
}
|