forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bunch of 32-bit patterns... Uffff :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75926 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Showing
17 changed files
with
527 additions
and
9 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
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,42 @@ | ||
; RUN: llvm-as < %s | llc -march=systemz | grep ahi | count 3 | ||
; RUN: llvm-as < %s | llc -march=systemz | grep afi | count 3 | ||
; RUN: llvm-as < %s | llc -march=systemz | grep lgfr | count 4 | ||
; RUN: llvm-as < %s | llc -march=systemz | grep llgfr | count 2 | ||
|
||
|
||
define i32 @foo1(i32 %a, i32 %b) { | ||
entry: | ||
%c = add i32 %a, 1 | ||
ret i32 %c | ||
} | ||
|
||
define i32 @foo2(i32 %a, i32 %b) { | ||
entry: | ||
%c = add i32 %a, 131072 | ||
ret i32 %c | ||
} | ||
|
||
define i32 @foo3(i32 %a, i32 %b) zeroext { | ||
entry: | ||
%c = add i32 %a, 1 | ||
ret i32 %c | ||
} | ||
|
||
define i32 @foo4(i32 %a, i32 %b) zeroext { | ||
entry: | ||
%c = add i32 %a, 131072 | ||
ret i32 %c | ||
} | ||
|
||
define i32 @foo5(i32 %a, i32 %b) signext { | ||
entry: | ||
%c = add i32 %a, 1 | ||
ret i32 %c | ||
} | ||
|
||
define i32 @foo6(i32 %a, i32 %b) signext { | ||
entry: | ||
%c = add i32 %a, 131072 | ||
ret i32 %c | ||
} | ||
|
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,22 @@ | ||
; RUN: llvm-as < %s | llc -march=systemz | grep ar | count 3 | ||
; RUN: llvm-as < %s | llc -march=systemz | grep lgfr | count 2 | ||
; RUN: llvm-as < %s | llc -march=systemz | grep llgfr | count 1 | ||
|
||
define i32 @foo(i32 %a, i32 %b) { | ||
entry: | ||
%c = add i32 %a, %b | ||
ret i32 %c | ||
} | ||
|
||
define i32 @foo1(i32 %a, i32 %b) zeroext { | ||
entry: | ||
%c = add i32 %a, %b | ||
ret i32 %c | ||
} | ||
|
||
define i32 @foo2(i32 %a, i32 %b) signext { | ||
entry: | ||
%c = add i32 %a, %b | ||
ret i32 %c | ||
} | ||
|
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,39 @@ | ||
; RUN: llvm-as < %s | llc -march=systemz | grep nill | count 3 | ||
; RUN: llvm-as < %s | llc -march=systemz | grep nilh | count 3 | ||
|
||
define i32 @foo1(i32 %a, i32 %b) { | ||
entry: | ||
%c = and i32 %a, 1 | ||
ret i32 %c | ||
} | ||
|
||
define i32 @foo2(i32 %a, i32 %b) { | ||
entry: | ||
%c = and i32 %a, 131072 | ||
ret i32 %c | ||
} | ||
|
||
define i32 @foo3(i32 %a, i32 %b) zeroext { | ||
entry: | ||
%c = and i32 %a, 1 | ||
ret i32 %c | ||
} | ||
|
||
define i32 @foo4(i32 %a, i32 %b) signext { | ||
entry: | ||
%c = and i32 %a, 131072 | ||
ret i32 %c | ||
} | ||
|
||
define i32 @foo5(i32 %a, i32 %b) zeroext { | ||
entry: | ||
%c = and i32 %a, 1 | ||
ret i32 %c | ||
} | ||
|
||
define i32 @foo6(i32 %a, i32 %b) signext { | ||
entry: | ||
%c = and i32 %a, 131072 | ||
ret i32 %c | ||
} | ||
|
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,20 @@ | ||
; RUN: llvm-as < %s | llc -march=systemz | grep ngr | count 3 | ||
|
||
define i32 @foo(i32 %a, i32 %b) { | ||
entry: | ||
%c = and i32 %a, %b | ||
ret i32 %c | ||
} | ||
|
||
define i32 @foo1(i32 %a, i32 %b) zeroext { | ||
entry: | ||
%c = and i32 %a, %b | ||
ret i32 %c | ||
} | ||
|
||
define i32 @foo2(i32 %a, i32 %b) signext { | ||
entry: | ||
%c = and i32 %a, %b | ||
ret i32 %c | ||
} | ||
|
Oops, something went wrong.