1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -verify-machineinstrs < %s -mcpu=pwr7 -mattr=-vsx| FileCheck %s
3 ; RUN: llc -verify-machineinstrs < %s -mcpu=pwr7 -mattr=+vsx | FileCheck -check-prefix=CHECK-VSX %s
4 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-f128:128:128-v128:128:128-n32:64"
5 target triple = "powerpc64-unknown-linux-gnu"
7 define void @copy_to_conceal(ptr %inp) #0 {
8 ; CHECK-LABEL: copy_to_conceal:
9 ; CHECK: # %bb.0: # %entry
10 ; CHECK-NEXT: addi 4, 1, -16
11 ; CHECK-NEXT: vxor 2, 2, 2
12 ; CHECK-NEXT: stvx 2, 0, 4
13 ; CHECK-NEXT: ld 4, -8(1)
14 ; CHECK-NEXT: std 4, 8(3)
15 ; CHECK-NEXT: ld 4, -16(1)
16 ; CHECK-NEXT: std 4, 0(3)
19 ; CHECK-VSX-LABEL: copy_to_conceal:
20 ; CHECK-VSX: # %bb.0: # %entry
21 ; CHECK-VSX-NEXT: xxlxor 0, 0, 0
22 ; CHECK-VSX-NEXT: stxvw4x 0, 0, 3
25 store <8 x i16> zeroinitializer, ptr %inp, align 2
28 if.end210: ; preds = %entry
31 ; This will generate two align-1 i64 stores. Make sure that they are
32 ; indexed stores and not in r+i form (which require the offset to be
37 attributes #0 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" }