From 5ea246cf137c6545ca9f1f77376121914b059615 Mon Sep 17 00:00:00 2001 From: Preston Gurd Date: Thu, 4 Oct 2012 15:26:04 +0000 Subject: [PATCH] Revert 165129 llvm-svn: 165231 --- clang/test/CodeGen/atom-idiv-bypass.c | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 clang/test/CodeGen/atom-idiv-bypass.c diff --git a/clang/test/CodeGen/atom-idiv-bypass.c b/clang/test/CodeGen/atom-idiv-bypass.c deleted file mode 100644 index a2ed553..0000000 --- a/clang/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; -} -- 2.7.4