From fd0336e3455a247f8fe81532553b34a0655b87ec Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Mon, 1 Oct 2001 00:23:12 +0000 Subject: [PATCH] Add different "cast constant value" for several possible types. Note these are actually generated by Phis with constant operands. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@685 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/select.ll | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/test/select.ll b/test/select.ll index 69f794f84a5..d937387a58c 100644 --- a/test/select.ll +++ b/test/select.ll @@ -15,17 +15,24 @@ begin end ; A constant argument to a Phi produces a Cast instruction in the -; corresponding predecessor basic block. This has little to do with -; selection but the code is a bit weird. +; corresponding predecessor basic block. This checks a few things: +; -- phi arguments coming from the bottom of the same basic block +; (they should not be forward substituted in the machine code!) +; -- code generation for casts of various types +; -- use of immediate fields for integral constants of different sizes +; -- branch on a constant condition ; void "mergeConstants"(int * %x, int * %y) begin -;