From: Reid Spencer Date: Tue, 2 Jan 2007 05:48:32 +0000 (+0000) Subject: For PR1070: X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6e8e64421ee55699c413495ac55d1877dcee2338;p=oota-llvm.git For PR1070: Add a test case to ensure that llvm-upgrade retains correct semantics for the previous definition of "cast to bool" which compared against null. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32812 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Assembler/2007-01-01-Cast-To-Bool.ll b/test/Assembler/2007-01-01-Cast-To-Bool.ll new file mode 100644 index 00000000000..1dfc5d55987 --- /dev/null +++ b/test/Assembler/2007-01-01-Cast-To-Bool.ll @@ -0,0 +1,5 @@ +; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | grep 'icmp ne' +bool %main(int %X) { + %res = cast bool true to bool + ret bool %res +}