llvm-6502/test/CodeGen/X86/return_zeroext_i2.ll
Patrik Hagglund cf403861a3 [pr19635] Revert most of r170537, and add new testcase.
Patch provided by Andrey Kuharev.

Sorry, r170537 was obviously wrong.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215190 91177308-0d34-0410-b5e6-96231b3b80d8
2014-08-08 08:21:19 +00:00

8 lines
183 B
LLVM

; RUN: llc -mtriple=i386-pc-win32 < %s | FileCheck %s
; Check that the testcase does not crash
define zeroext i2 @crash () {
ret i2 0
}
; CHECK: xorl %eax, %eax
; CHECK-NEXT: retl