Another regression from the pattern isel
authorChris Lattner <sabre@nondot.org>
Wed, 1 Feb 2006 01:44:25 +0000 (01:44 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 1 Feb 2006 01:44:25 +0000 (01:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25867 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/README.txt

index 9e75f8ecc0e7fb4e7da747c8d14a696e47387e42..90ed0a348d1edce89e3eec7485c8e5c4d1c31b00 100644 (file)
@@ -288,3 +288,19 @@ _test:
 
 This is bad for register pressure, though the dag isel is producing a 
 better schedule. :)
+
+//===---------------------------------------------------------------------===//
+
+This testcase should have no SSE instructions in it, and only one load from
+a constant pool:
+
+double %test3(bool %B) {
+        %C = select bool %B, double 123.412, double 523.01123123
+        ret double %C
+}
+
+Currently, the select is being lowered, which prevents the dag combiner from
+turning 'select (load CPI1), (load CPI2)' -> 'load (select CPI1, CPI2)'
+
+The pattern isel got this one right.
+