23 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+sse2 | FileCheck %s --check-prefix=SSE23; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+sse4.1 | FileCheck %s --check-prefix=SSE414 5; Make sure that the conversion between v4i8 to v2i16 is not a simple bitcast.6define void @prom_bug(<4 x i8> %t, ptr %p) {7; SSE2-LABEL: prom_bug:8; SSE2: ## %bb.0:9; SSE2-NEXT: movd %xmm0, %eax10; SSE2-NEXT: movw %ax, (%rdi)11; SSE2-NEXT: retq12;13; SSE41-LABEL: prom_bug:14; SSE41: ## %bb.0:15; SSE41-NEXT: pextrw $0, %xmm0, (%rdi)16; SSE41-NEXT: retq17 %r = bitcast <4 x i8> %t to <2 x i16>18 %o = extractelement <2 x i16> %r, i32 019 store i16 %o, ptr %p20 ret void21}22 23