mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
41f7baf181
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189189 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
586 B
LLVM
18 lines
586 B
LLVM
; RUN: llc < %s -march=x86-64 -mtriple=x86_64-apple-darwin -mcpu=knl | FileCheck %s
|
|
|
|
; CHECK-LABEL: test1
|
|
; CHECK: vpxord
|
|
; CHECK: ret
|
|
define <16 x i32> @test1(i32* %x) {
|
|
%y = load i32* %x, align 4
|
|
%res = insertelement <16 x i32>zeroinitializer, i32 %y, i32 4
|
|
ret <16 x i32>%res
|
|
}
|
|
|
|
; CHECK-LABEL: test2
|
|
; CHECK: vpaddd LCP{{.*}}(%rip){1to16}
|
|
; CHECK: ret
|
|
define <16 x i32> @test2(<16 x i32> %x) {
|
|
%res = add <16 x i32><i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1>, %x
|
|
ret <16 x i32>%res
|
|
} |