diff options
author | Preston Gurd <preston.gurd@intel.com> | 2012-10-04 15:26:04 +0000 |
---|---|---|
committer | Preston Gurd <preston.gurd@intel.com> | 2012-10-04 15:26:04 +0000 |
commit | 763794a03e525a2866432d3d3dff162f1838b769 (patch) | |
tree | 9bdfc0437aa24a2a7af7a873a3bed30e6c4c7f31 | |
parent | cbdc1a3432c897c11b6d256d556a8a11368729ad (diff) |
Revert 165129
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165231 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/atom-idiv-bypass.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/test/CodeGen/atom-idiv-bypass.c b/test/CodeGen/atom-idiv-bypass.c deleted file mode 100644 index a2ed55329d..0000000000 --- a/test/CodeGen/atom-idiv-bypass.c +++ /dev/null @@ -1,32 +0,0 @@ -// This test verifies that IDIV bypass optimizations is used when compiling for -// Atom processors with O2. The optimization inserts a test followed by a -// branch to bypass the slow IDIV instruction. This test verifies that global -// context types are used when comparing with those in the BypassTypeMap. - -// RUN: %clang %s -triple i386-unknown-unknown -march=atom -m32 -O2 -S -o - | FileCheck %s -// CHECK: div32 -// CHECK: orl -// CHECK: testl -// CHECK: je -// CHECK: idivl -// CHECK: ret -// CHECK: divb -// CHECK: ret -int div32(int a, int b) -{ - return a/b; -} - -// CHECK: divrem32 -// CHECK: orl -// CHECK: testl -// CHECK: je -// CHECK: idivl -// CHECK: jmp -// CHECK: divb -// CHECK: addl -// CHECK: ret -int divrem32(int a, int b) -{ - return a/b + a%b; -} |