Mercurial > hg > CbC > CbC_llvm
view test/CodeGen/X86/commuted-blend-mask.ll @ 95:afa8332a0e37 LLVM3.8
LLVM 3.8
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Oct 2015 17:48:58 +0900 |
parents | 60c9769439b8 |
children | 803732b1fca8 |
line wrap: on
line source
; RUN: llc -mtriple=x86_64-unknown-unknown -mattr=+sse4.1 < %s | FileCheck %s ; When commuting the operands of a SSE blend, make sure that the resulting blend ; mask can be encoded as a imm8. ; Before, when commuting the operands to the shuffle in function @test, the backend ; produced the following assembly: ; pblendw $4294967103, %xmm1, %xmm0 define <4 x i32> @test(<4 x i32> %a, <4 x i32> %b) { ;CHECK: pblendw $63, %xmm1, %xmm0 %shuffle = shufflevector <4 x i32> %a, <4 x i32> %b, <4 x i32> <i32 4, i32 5, i32 6, i32 3> ret <4 x i32> %shuffle }