Bill Schmidt | 71dddd5 | 2014-05-27 15:57:51 +0000 | [diff] [blame] | 1 | ; RUN: llc -mcpu=ppc64 -O0 -fast-isel=false < %s | FileCheck %s |
| 2 | |
| 3 | ; Checks for a previous bug where vspltisb/vaddubm were issued in place |
| 4 | ; of vsplitsh/vadduhm. |
| 5 | |
| 6 | target 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-v128:128:128-n32:64" |
| 7 | target triple = "powerpc64-unknown-linux-gnu" |
| 8 | |
| 9 | @a = external global <16 x i8> |
| 10 | |
| 11 | define void @foo() nounwind ssp { |
| 12 | ; CHECK: foo: |
| 13 | store <16 x i8> <i8 0, i8 16, i8 0, i8 16, i8 0, i8 16, i8 0, i8 16, i8 0, i8 16, i8 0, i8 16, i8 0, i8 16, i8 0, i8 16>, <16 x i8>* @a |
| 14 | ; CHECK: vspltish [[REG:[0-9]+]], 8 |
| 15 | ; CHECK: vadduhm {{[0-9]+}}, [[REG]], [[REG]] |
| 16 | ret void |
| 17 | } |
| 18 | |