1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -o - %s | FileCheck --check-prefix=BE %s
3 ; RUN: llc -mtriple=powerpc64-ibm-aix-xcoff -o - %s | FileCheck --check-prefix=BE %s
4 ; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -o - %s | FileCheck --check-prefix=LE %s
6 define void @fold_constant_stores_loaddr(ptr %i8_ptr) {
7 ; BE-LABEL: fold_constant_stores_loaddr:
8 ; BE: # %bb.0: # %entry
10 ; BE-NEXT: std 4, 0(3)
12 ; BE-NEXT: stb 4, 0(3)
15 ; LE-LABEL: fold_constant_stores_loaddr:
16 ; LE: # %bb.0: # %entry
18 ; LE-NEXT: std 4, 0(3)
20 ; LE-NEXT: stb 4, 0(3)
23 store i64 0, ptr %i8_ptr, align 8
24 store i8 170, ptr %i8_ptr, align 1
29 define void @fold_constant_stores_hiaddr(ptr %i8_ptr) {
30 ; BE-LABEL: fold_constant_stores_hiaddr:
31 ; BE: # %bb.0: # %entry
33 ; BE-NEXT: std 4, 0(3)
35 ; BE-NEXT: stb 4, 0(3)
38 ; LE-LABEL: fold_constant_stores_hiaddr:
39 ; LE: # %bb.0: # %entry
41 ; LE-NEXT: std 4, 0(3)
43 ; LE-NEXT: stb 4, 0(3)
46 store i64 0, ptr %i8_ptr, align 8
47 %i8_ptr2 = getelementptr inbounds i8, ptr %i8_ptr, i64 7
48 store i8 170, ptr %i8_ptr, align 1