Another entry
authorEvan Cheng <evan.cheng@apple.com>
Wed, 17 May 2006 19:05:31 +0000 (19:05 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 17 May 2006 19:05:31 +0000 (19:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28356 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/README.txt

index 82acb64e7a9d77e5ec14b5823a8325616616e1c9..2f844cee410c1d6145f69310985f369f0648d8fe 100644 (file)
@@ -1171,3 +1171,15 @@ _test:
         ret
 
 or use pxor (to make a zero vector) and shuffle (to insert it).
+
+//===---------------------------------------------------------------------===//
+
+Bad codegen:
+
+char foo(int x) { return x; }
+
+_foo:
+       movl 4(%esp), %eax
+       shll $24, %eax
+       sarl $24, %eax
+       ret