-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use actual pointer instead of null, remove check prefixes
- Loading branch information
Showing
1 changed file
with
8 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,19 @@ | ||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4 | ||
; RUN: opt < %s -passes=vector-combine -S -mtriple=riscv32 -mattr=+v | FileCheck %s -check-prefixes=CHECK,RV32 | ||
; RUN: opt < %s -passes=vector-combine -S -mtriple=riscv64 -mattr=+v | FileCheck %s -check-prefixes=CHECK,RV64 | ||
; RUN: opt < %s -passes=vector-combine -S -mtriple=riscv32 -mattr=+v | FileCheck %s | ||
; RUN: opt < %s -passes=vector-combine -S -mtriple=riscv64 -mattr=+v | FileCheck %s | ||
|
||
define void @fixed_load_scalable_src() { | ||
define void @fixed_load_scalable_src(ptr %p) { | ||
; CHECK-LABEL: define void @fixed_load_scalable_src( | ||
; CHECK-SAME: ) #[[ATTR0:[0-9]+]] { | ||
; CHECK-SAME: ptr [[P:%.*]]) #[[ATTR0:[0-9]+]] { | ||
; CHECK-NEXT: entry: | ||
; CHECK-NEXT: store <vscale x 4 x i16> zeroinitializer, ptr null, align 8 | ||
; CHECK-NEXT: [[TMP0:%.*]] = load <4 x i16>, ptr null, align 8 | ||
; CHECK-NEXT: store <vscale x 4 x i16> zeroinitializer, ptr [[P]], align 8 | ||
; CHECK-NEXT: [[TMP0:%.*]] = load <4 x i16>, ptr [[P]], align 8 | ||
; CHECK-NEXT: [[TMP1:%.*]] = shufflevector <4 x i16> [[TMP0]], <4 x i16> zeroinitializer, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 poison, i32 poison, i32 poison, i32 poison> | ||
; CHECK-NEXT: ret void | ||
; | ||
entry: | ||
store <vscale x 4 x i16> zeroinitializer, ptr null | ||
%0 = load <4 x i16>, ptr null | ||
store <vscale x 4 x i16> zeroinitializer, ptr %p | ||
%0 = load <4 x i16>, ptr %p | ||
%1 = shufflevector <4 x i16> %0, <4 x i16> zeroinitializer, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 poison, i32 poison, i32 poison, i32 poison> | ||
ret void | ||
} | ||
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line: | ||
; RV32: {{.*}} | ||
; RV64: {{.*}} |