1; RUN: llc -mtriple=x86_64-unknown-unknown -mattr=+sse4.1 < %s | FileCheck %s 2 3; When commuting the operands of a SSE blend, make sure that the resulting blend 4; mask can be encoded as a imm8. 5; Before, when commuting the operands to the shuffle in function @test, the backend 6; produced the following assembly: 7; pblendw $4294967103, %xmm1, %xmm0 8 9define <4 x i32> @test(<4 x i32> %a, <4 x i32> %b) { 10 ;CHECK: pblendw $63, %xmm1, %xmm0 11 %shuffle = shufflevector <4 x i32> %a, <4 x i32> %b, <4 x i32> <i32 4, i32 5, i32 6, i32 3> 12 ret <4 x i32> %shuffle 13} 14