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.
Fix CR/LF line endings in test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222120 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
1 parent
dbd7366
commit 17e95ea
Showing
1 changed file
with
16 additions
and
16 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,16 +1,16 @@ | ||
; RUN: llc < %s -O2 -march=x86-64 | FileCheck %s | ||
; Checks that a zeroing mov is inserted for the trunc/zext pair even when | ||
; the source of the zext is an AssertSext node | ||
; PR20494 | ||
|
||
define i64 @main(i64 %a) { | ||
; CHECK-LABEL: main | ||
; CHECK: movl %e{{..}}, %eax | ||
; CHECK: ret | ||
%or = or i64 %a, -2 | ||
%trunc = trunc i64 %or to i32 | ||
br label %l | ||
l: | ||
%ext = zext i32 %trunc to i64 | ||
ret i64 %ext | ||
} | ||
; RUN: llc < %s -O2 -march=x86-64 | FileCheck %s | ||
; Checks that a zeroing mov is inserted for the trunc/zext pair even when | ||
; the source of the zext is an AssertSext node | ||
; PR20494 | ||
|
||
define i64 @main(i64 %a) { | ||
; CHECK-LABEL: main | ||
; CHECK: movl %e{{..}}, %eax | ||
; CHECK: ret | ||
%or = or i64 %a, -2 | ||
%trunc = trunc i64 %or to i32 | ||
br label %l | ||
l: | ||
%ext = zext i32 %trunc to i64 | ||
ret i64 %ext | ||
} |