llvm-6502/test/CodeGen/X86/fold-vex.ll
Sanjay Patel f766946abd fix typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227815 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-02 17:47:30 +00:00

17 lines
419 B
LLVM

; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=corei7-avx | FileCheck %s
;CHECK: @test
; No need to load from memory. The operand will be loaded as part of the AND instr.
;CHECK-NOT: vmovaps
;CHECK: vandps
;CHECK: ret
define void @test1(<8 x i32>* %p0, <8 x i32> %in1) nounwind {
entry:
%in0 = load <8 x i32>* %p0, align 2
%a = and <8 x i32> %in0, %in1
store <8 x i32> %a, <8 x i32>* undef
ret void
}