Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
swiftshader
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
swiftshader
Commits
659cc4f2
Commit
659cc4f2
authored
Oct 16, 2015
by
Jim Stichnoth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Subzero: Fix MINIMAL build issues.
BUG= none R=kschimpf@google.com Review URL:
https://codereview.chromium.org/1407263005
.
parent
d981025a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
0 deletions
+15
-0
IceAssemblerARM32.cpp
src/IceAssemblerARM32.cpp
+7
-0
add.ll
tests_lit/assembler/arm32/add.ll
+2
-0
load-store.ll
tests_lit/assembler/arm32/load-store.ll
+2
-0
mov-imm.ll
tests_lit/assembler/arm32/mov-imm.ll
+2
-0
sub.ll
tests_lit/assembler/arm32/sub.ll
+2
-0
No files found.
src/IceAssemblerARM32.cpp
View file @
659cc4f2
...
...
@@ -128,6 +128,9 @@ DecodedResult decodeOperand(const Operand *Opnd, uint32_t &Value) {
const
uint32_t
Immed8
=
FlexImm
->
getImm
();
const
uint32_t
Rotate
=
FlexImm
->
getRotateAmt
();
assert
((
Rotate
<
(
1
<<
kRotateBits
))
&&
(
Immed8
<
(
1
<<
kImmed8Bits
)));
// TODO(kschimpf): Remove void casts when MINIMAL build allows.
(
void
)
kRotateBits
;
(
void
)
kImmed8Bits
;
Value
=
(
Rotate
<<
kRotateShift
)
|
(
Immed8
<<
kImmed8Shift
);
return
DecodedAsRotatedImm8
;
}
...
...
@@ -202,6 +205,8 @@ void ARM32::AssemblerARM32::emitType01(CondARM32::Cond Cond, uint32_t Type,
uint32_t
Opcode
,
bool
SetCc
,
uint32_t
Rn
,
uint32_t
Rd
,
uint32_t
Imm12
)
{
assert
(
isGPRRegisterDefined
(
Rd
));
// TODO(kschimpf): Remove void cast when MINIMAL build allows.
(
void
)
isGPRRegisterDefined
(
Rd
);
assert
(
Cond
!=
CondARM32
::
kNone
);
AssemblerBuffer
::
EnsureCapacity
ensured
(
&
Buffer
);
const
uint32_t
Encoding
=
(
encodeCondition
(
Cond
)
<<
kConditionShift
)
|
...
...
@@ -264,6 +269,8 @@ void ARM32::AssemblerARM32::bx(RegARM32::GPRRegister Rm, CondARM32::Cond Cond) {
// cccc000100101111111111110001mmmm where mmmm=rm and cccc=Cond.
// (ARM section A8.8.27, encoding A1).
assert
(
isGPRRegisterDefined
(
Rm
));
// TODO(kschimpf): Remove void cast when MINIMAL build allows.
(
void
)
isGPRRegisterDefined
(
Rm
);
assert
(
isConditionDefined
(
Cond
));
AssemblerBuffer
::
EnsureCapacity
ensured
(
&
Buffer
);
const
uint32_t
Encoding
=
(
encodeCondition
(
Cond
)
<<
kConditionShift
)
|
B24
|
...
...
tests_lit/assembler/arm32/add.ll
View file @
659cc4f2
...
...
@@ -3,6 +3,8 @@
; NOTE: We use -O2 to get rid of memory stores.
; REQUIRES: allow_dump
; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \
; RUN: | FileCheck %s --check-prefix=ASM
; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -O2 \
...
...
tests_lit/assembler/arm32/load-store.ll
View file @
659cc4f2
; Show that we can handle variable (i.e. stack) spills.
; REQUIRES: allow_dump
; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -Om1 \
; RUN: | FileCheck %s --check-prefix=ASM
; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -Om1 \
...
...
tests_lit/assembler/arm32/mov-imm.ll
View file @
659cc4f2
; Show that we know how to translate move (immediate) ARM instruction.
; REQUIRES: allow_dump
; RUN: %p2i --filetype=asm -i %s --target=arm32 \
; RUN: | FileCheck %s --check-prefix=ASM
; RUN: %p2i --filetype=iasm -i %s --target=arm32 \
...
...
tests_lit/assembler/arm32/sub.ll
View file @
659cc4f2
...
...
@@ -3,6 +3,8 @@
; NOTE: We use -O2 to get rid of memory stores.
; REQUIRES: allow_dump
; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \
; RUN: | FileCheck %s --check-prefix=ASM
; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -O2 \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment