mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Fix a ton of comment typos found by codespell. Patch by
Luis Felipe Strano Moraes! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129558 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
; RUN: llc -O0 -asm-verbose < %s > %t
|
||||
; RUN: grep "External Name" %t | grep -v X
|
||||
; RUN: grep "External Name" %t | grep Y | count 1
|
||||
; Test to check type with no defintion is listed in pubtypes section.
|
||||
; Test to check type with no definition is listed in pubtypes section.
|
||||
%struct.X = type opaque
|
||||
%struct.Y = type { i32 }
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// RUN: %llvmgcc %s -S -o -
|
||||
|
||||
#ifdef __APPLE__
|
||||
/* test that X is layed out correctly when this pragma is used. */
|
||||
/* test that X is laid out correctly when this pragma is used. */
|
||||
#pragma options align=mac68k
|
||||
#endif
|
||||
|
||||
|
@@ -10,7 +10,7 @@ static void bad(unsigned int v1, unsigned int v2) {
|
||||
// MIN(1631381461u * v2 - 4047041419, 1631381461u * v1 - 4047041419)
|
||||
//
|
||||
// 1631381461u * 1273463329u = 2077504466193943669, but 32-bit overflow clips
|
||||
// this to 4047041419. This breaks the comparision implicit in the MIN().
|
||||
// this to 4047041419. This breaks the comparison implicit in the MIN().
|
||||
// Two multiply operations suggests the bad optimization is happening;
|
||||
// one multiplication, after the MIN(), is correct.
|
||||
// CHECK: mul
|
||||
|
@@ -157,7 +157,7 @@ L3:
|
||||
// FIXME: Unfortunately, we do not get these relocations in exactly the same
|
||||
// order as Darwin 'as'. It turns out that 'as' *usually* ends up emitting
|
||||
// them in reverse address order, but sometimes it allocates some
|
||||
// additional relocations late so these end up preceed the other entries. I
|
||||
// additional relocations late so these end up precede the other entries. I
|
||||
// haven't figured out the exact criteria for this yet.
|
||||
|
||||
// CHECK: (('word-0', 0x56),
|
||||
|
@@ -110,7 +110,7 @@ def SHL32rCL : Inst<(ops R32:$dst, R32:$src),
|
||||
[(set R32:$dst, (shl R32:$src, CL))]>;
|
||||
|
||||
// The RTL list is a list, allowing complex instructions to be defined easily.
|
||||
// Temporary 'internal' registers can be used to break instructions appart.
|
||||
// Temporary 'internal' registers can be used to break instructions apart.
|
||||
let isTwoAddress = 1 in
|
||||
def XOR32mi : Inst<(ops addr:$addr, imm32:$imm),
|
||||
"xor $dst, $src2", 0x81, MRM6m,
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; This bug has to do with the fact that constant propogation was implemented in
|
||||
; This bug has to do with the fact that constant propagation was implemented in
|
||||
; terms of _logical_ not (! in C) instead of _bitwise_ not (~ in C). This was
|
||||
; due to a spec change.
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
; RUN: opt < %s -constprop -die -S | FileCheck %s
|
||||
|
||||
; This is a basic sanity check for constant propogation. The add instruction
|
||||
; This is a basic sanity check for constant propagation. The add instruction
|
||||
; should be eliminated.
|
||||
define i32 @test1(i1 %B) {
|
||||
br i1 %B, label %BB1, label %BB2
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; Ensure constant propogation of logical instructions is working correctly.
|
||||
; Ensure constant propagation of logical instructions is working correctly.
|
||||
|
||||
; RUN: opt < %s -constprop -die -S | FileCheck %s
|
||||
; CHECK-NOT: {{and|or|xor}}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; This is a basic sanity check for constant propogation. The add instruction
|
||||
; This is a basic sanity check for constant propagation. The add instruction
|
||||
; should be eliminated.
|
||||
|
||||
; RUN: opt < %s -constprop -die -S | not grep phi
|
||||
|
@@ -4,7 +4,7 @@
|
||||
|
||||
; PR1510
|
||||
|
||||
; These are all equivelent to A^B
|
||||
; These are all equivalent to A^B
|
||||
|
||||
define i32 @test1(i32 %a, i32 %b) {
|
||||
entry:
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; This is a basic sanity check for constant propogation. The add instruction
|
||||
; This is a basic sanity check for constant propagation. The add instruction
|
||||
; should be eliminated.
|
||||
|
||||
; RUN: opt < %s -sccp -S | not grep add
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; This is a basic sanity check for constant propogation. The add instruction
|
||||
; This is a basic sanity check for constant propagation. The add instruction
|
||||
; and phi instruction should be eliminated.
|
||||
|
||||
; RUN: opt < %s -sccp -S | not grep phi
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; This is a basic sanity check for constant propogation. It tests the basic
|
||||
; This is a basic sanity check for constant propagation. It tests the basic
|
||||
; arithmatic operations.
|
||||
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; This is a basic sanity check for constant propogation. It tests the basic
|
||||
; This is a basic sanity check for constant propagation. It tests the basic
|
||||
; logic operations.
|
||||
|
||||
|
||||
|
@@ -13,7 +13,7 @@ define i32 @foo() {
|
||||
%res2 = insertvalue { i32, i32 } %res1, i32 2, 1 ; <{ i32, i32 }> [#uses=1]
|
||||
; And store it
|
||||
store { i32, i32 } %res2, { i32, i32 }* %target
|
||||
; Actually use %target, so it doesn't get removed alltogether
|
||||
; Actually use %target, so it doesn't get removed altogether
|
||||
%ptr = getelementptr { i32, i32 }* %target, i32 0, i32 0
|
||||
%val = load i32* %ptr
|
||||
ret i32 %val
|
||||
@@ -26,7 +26,7 @@ define i32 @bar() {
|
||||
%res2 = insertvalue [ 2 x i32 ] %res1, i32 2, 1 ; <{ i32, i32 }> [#uses=1]
|
||||
; And store it
|
||||
store [ 2 x i32 ] %res2, [ 2 x i32 ]* %target
|
||||
; Actually use %target, so it doesn't get removed alltogether
|
||||
; Actually use %target, so it doesn't get removed altogether
|
||||
%ptr = getelementptr [ 2 x i32 ]* %target, i32 0, i32 0
|
||||
%val = load i32* %ptr
|
||||
ret i32 %val
|
||||
|
Reference in New Issue
Block a user