brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · 90f7364 Raw
51 lines · plain
1; RUN: llc < %s -O02; PR82113target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"4target triple = "x86_64-unknown-linux-gnu"5 6module asm "\09.ident\09\22GCC: (GNU) 4.5.2 20100914 (prerelease) LLVM: 114628\22"7 8%"int[]" = type [4 x i32]9%0 = type { %"int[]" }10%float = type float11%"float[]" = type [4 x float]12%int = type i3213%"long unsigned int" = type i6414 15define void @swizzle(ptr %a, ptr %b, ptr %c) nounwind {16entry:17  %a_addr = alloca ptr18  %b_addr = alloca ptr19  %c_addr = alloca ptr20  %"alloca point" = bitcast i32 0 to i3221  store ptr %a, ptr %a_addr22  store ptr %b, ptr %b_addr23  store ptr %c, ptr %c_addr24  %0 = load ptr, ptr %a_addr, align 6425  %1 = load ptr, ptr %b_addr, align 6426  %2 = load ptr, ptr %c_addr, align 6427  %"ssa point" = bitcast i32 0 to i3228  br label %"2"29 30"2":                                              ; preds = %entry31  %3 = load <4 x float>, ptr %1, align 1632  %4 = load double, ptr %033  %5 = insertelement <2 x double> undef, double %4, i32 034  %6 = insertelement <2 x double> %5, double undef, i32 135  %7 = bitcast <2 x double> %6 to <4 x float>36  %8 = shufflevector <4 x float> %3, <4 x float> %7, <4 x i32> <i32 4, i32 5, i32 2, i32 3>37  store <4 x float> %8, ptr %1, align 1638  %9 = getelementptr i8, ptr %0, i64 839  %10 = load <4 x float>, ptr %2, align 1640  %11 = load double, ptr %941  %12 = insertelement <2 x double> undef, double %11, i32 042  %13 = insertelement <2 x double> %12, double undef, i32 143  %14 = bitcast <2 x double> %13 to <4 x float>44  %15 = shufflevector <4 x float> %10, <4 x float> %14, <4 x i32> <i32 4, i32 5, i32 2, i32 3>45  store <4 x float> %15, ptr %2, align 1646  br label %return47 48return:                                           ; preds = %"2"49  ret void50}51