diff options
Diffstat (limited to 'llvm/test/CodeGen/X86/mempcpy.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/mempcpy.ll | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/test/CodeGen/X86/mempcpy.ll b/llvm/test/CodeGen/X86/mempcpy.ll index f8db255c1a4..1c737b64402 100644 --- a/llvm/test/CodeGen/X86/mempcpy.ll +++ b/llvm/test/CodeGen/X86/mempcpy.ll @@ -1,4 +1,5 @@ ; RUN: llc < %s -mtriple=x86_64-unknown-linux -O2 | FileCheck %s +; RUN: llc < %s -mtriple=i686-unknown-linux -O2 | FileCheck %s ; This test checks that: ; (1) mempcpy is lowered as memcpy, and @@ -10,15 +11,12 @@ ; the first instance to be reused as the return value. This allows the check for ; (2) to be expressed as verifying that the MOV to store DST+N to G and ; the MOV to copy DST+N to %rax use the same source register. - -; Also see mempcpy-32.ll - @G = common global i8* null, align 8 ; CHECK-LABEL: RET_MEMPCPY: -; CHECK: movq [[REG:%r[a-z0-9]+]], {{.*}}G -; CHECK: callq {{.*}}memcpy -; CHECK: movq [[REG]], %rax +; CHECK: mov{{.*}} [[REG:%[er][a-z0-9]+]], {{.*}}G +; CHECK: call{{.*}} {{.*}}memcpy +; CHECK: mov{{.*}} [[REG]], %{{[er]}}ax ; define i8* @RET_MEMPCPY(i8* %DST, i8* %SRC, i64 %N) { %add.ptr = getelementptr inbounds i8, i8* %DST, i64 %N |