mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-25 17:20:48 +00:00
add source
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37253 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2,6 +2,18 @@
|
|||||||
; RUN: llvm-as < %s | llc -march=x86 | not grep sub.*esp
|
; RUN: llvm-as < %s | llc -march=x86 | not grep sub.*esp
|
||||||
; RUN: llvm-as < %s | llc -march=x86 | not grep esi
|
; RUN: llvm-as < %s | llc -march=x86 | not grep esi
|
||||||
|
|
||||||
|
; This corresponds to:
|
||||||
|
;int t(int a, int b) {
|
||||||
|
; while (a != b) {
|
||||||
|
; if (a > b)
|
||||||
|
; a -= b;
|
||||||
|
; else
|
||||||
|
; b -= a;
|
||||||
|
; }
|
||||||
|
; return a;
|
||||||
|
;}
|
||||||
|
|
||||||
|
|
||||||
define i32 @t(i32 %a, i32 %b) {
|
define i32 @t(i32 %a, i32 %b) {
|
||||||
entry:
|
entry:
|
||||||
%tmp1434 = icmp eq i32 %a, %b ; <i1> [#uses=1]
|
%tmp1434 = icmp eq i32 %a, %b ; <i1> [#uses=1]
|
||||||
|
Reference in New Issue
Block a user