forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v2: Add test (Matt). Fix capitalization of isEOP (Matt). Move pattern to class parameter (Matt). Make the instruction available to Cayman (Matt). Change name from MEM_RAT WRITE_TYPED to MEM_RAT STORE_TYPED. Patch by: Zoltan Gilian git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249042 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
1 parent
e53ca97
commit 7fe09ce
Showing
5 changed files
with
55 additions
and
0 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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
; RUN: llc -march=r600 -mcpu=redwood < %s | FileCheck --check-prefix=EG --check-prefix=FUNC %s | ||
; RUN: llc -march=r600 -mcpu=cayman < %s | FileCheck --check-prefix=CM --check-prefix=FUNC %s | ||
|
||
; store to rat 0 | ||
; FUNC-LABEL: {{^}}store_typed_rat0: | ||
; EG: MEM_RAT STORE_TYPED RAT(0) {{T[0-9]+, T[0-9]+}}, 1 | ||
; CM: MEM_RAT STORE_TYPED RAT(0) {{T[0-9]+, T[0-9]+}} | ||
|
||
define void @store_typed_rat0(<4 x i32> %data, <4 x i32> %index) { | ||
call void @llvm.r600.rat.store.typed(<4 x i32> %data, <4 x i32> %index, i32 0) | ||
ret void | ||
} | ||
|
||
; store to rat 11 | ||
; FUNC-LABEL: {{^}}store_typed_rat11: | ||
; EG: MEM_RAT STORE_TYPED RAT(11) {{T[0-9]+, T[0-9]+}}, 1 | ||
; CM: MEM_RAT STORE_TYPED RAT(11) {{T[0-9]+, T[0-9]+}} | ||
|
||
define void @store_typed_rat11(<4 x i32> %data, <4 x i32> %index) { | ||
call void @llvm.r600.rat.store.typed(<4 x i32> %data, <4 x i32> %index, i32 11) | ||
ret void | ||
} | ||
|
||
declare void @llvm.r600.rat.store.typed(<4 x i32>, <4 x i32>, i32) |