diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-03 20:09:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-03 20:09:23 +0000 |
commit | 8617b3579bffb6d04bbeeac45b4eea591047595f (patch) | |
tree | 96cd144a6c4dffa53ee9edbb6d8e10b980fbf03a | |
parent | 0c4e886dbf1cf7736819a49d5143ae1c2a0cfb79 (diff) |
Make sure that setcc is implemented for bools.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3575 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/ConstProp/2002-09-03-SetCC-Bools.ll | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/Transforms/ConstProp/2002-09-03-SetCC-Bools.ll b/test/Transforms/ConstProp/2002-09-03-SetCC-Bools.ll new file mode 100644 index 0000000000..9ac4935377 --- /dev/null +++ b/test/Transforms/ConstProp/2002-09-03-SetCC-Bools.ll @@ -0,0 +1,22 @@ +; SetCC on boolean values was not implemented! + +; RUN: if as < %s | opt -constprop -die | dis | grep 'set' +; RUN: then exit 1 +; RUN: else exit 0 +; RUN: fi + +bool "test1"() { + %A = setle bool true, false + %B = setge bool true, false + %C = setlt bool false, true + %D = setgt bool true, false + %E = seteq bool false, false + %F = setne bool false, true + %G = and bool %A, %B + %H = and bool %C, %D + %I = and bool %E, %F + %J = and bool %G, %H + %K = and bool %I, %J + ret bool %K +} + |