llvm.org GIT mirror llvm / 942cafd
[SLP] add test for vectorization of constant expressions; NFC Goes with D67362. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371879 91177308-0d34-0410-b5e6-96231b3b80d8 Sanjay Patel 30 days ago
1 changed file(s) with 13 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
564564 ret void
565565 }
566566
567 define void @store_constant_expression(i64* %p) {
568 ; CHECK-LABEL: @store_constant_expression(
569 ; CHECK-NEXT: [[ARRAYIDX1:%.*]] = getelementptr inbounds i64, i64* [[P:%.*]], i64 1
570 ; CHECK-NEXT: [[TMP1:%.*]] = bitcast i64* [[P]] to <2 x i64>*
571 ; CHECK-NEXT: store <2 x i64> , <2 x i64>* [[TMP1]], align 8
572 ; CHECK-NEXT: ret void
573 ;
574 store i64 ptrtoint (i32* @g1 to i64), i64* %p, align 8
575 %arrayidx1 = getelementptr inbounds i64, i64* %p, i64 1
576 store i64 ptrtoint (i32* @g2 to i64), i64* %arrayidx1, align 8
577 ret void
578 }
579
567580 attributes #0 = { nounwind ssp uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
568581
569582 !llvm.ident = !{!0}