brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · a13b439 Raw
57 lines · plain
1; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s -check-prefix=X642; X64:      mov3; X64-NEXT: movb %ah, (%rsi)4; X64:      mov5; X64-NEXT: movb %ah, (%rsi)6; X64:      mov7; X64-NEXT: movb %ah, (%rsi)8; X64-NOT:      mov9 10; RUN: llc < %s -mtriple=x86_64-linux-gnux32 | FileCheck %s -check-prefix=X3211; X32:      mov12; X32-NEXT: movb %ah, (%esi)13; X32:      mov14; X32-NEXT: movb %ah, (%esi)15; X32:      mov16; X32-NEXT: movb %ah, (%esi)17; X32-NOT:      mov18 19; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s -check-prefix=W6420; W64-NOT:      mov21; W64:      movb %ch, (%rdx)22; W64-NOT:      mov23; W64:      movb %ch, (%rdx)24; W64-NOT:      mov25; W64:      movb %ch, (%rdx)26; W64-NOT:      mov27 28; RUN: llc < %s -mtriple=i686-- | FileCheck %s -check-prefix=X8629; X86-NOT:      mov30; X86:      movb %ah, (%e31; X86-NOT:      mov32; X86:      movb %ah, (%e33; X86-NOT:      mov34; X86:      movb %ah, (%e35; X86-NOT:      mov36 37; Use h-register extract and store.38 39define void @foo16(i16 inreg %p, ptr inreg %z) nounwind {40  %q = lshr i16 %p, 841  %t = trunc i16 %q to i842  store i8 %t, ptr %z43  ret void44}45define void @foo32(i32 inreg %p, ptr inreg %z) nounwind {46  %q = lshr i32 %p, 847  %t = trunc i32 %q to i848  store i8 %t, ptr %z49  ret void50}51define void @foo64(i64 inreg %p, ptr inreg %z) nounwind {52  %q = lshr i64 %p, 853  %t = trunc i64 %q to i854  store i8 %t, ptr %z55  ret void56}57