mirror of
https://github.com/open-goal/jak-project
synced 2026-08-08 10:34:30 -04:00
[Compiler] Bitfield Types (#146)
* add the ability to define and read bitfield types * new set * add bitfield setting * add static bitfields
This commit is contained in:
@@ -227,10 +227,15 @@ TEST_F(ArithmeticTests, NestedFunctionCall) {
|
||||
runner.run_static_test(env, testCategory, "nested-function.static.gc", {"10\n"});
|
||||
}
|
||||
|
||||
TEST_F(ArithmeticTests, ShiftOperations) {
|
||||
TEST_F(ArithmeticTests, VariableShift) {
|
||||
runner.run_static_test(env, testCategory, "shiftvs.static.gc", {"11\n"});
|
||||
}
|
||||
|
||||
TEST_F(ArithmeticTests, FixedShift) {
|
||||
// same math as the variable shift test, just using the fixed shift operators.
|
||||
runner.run_static_test(env, testCategory, "shift-fixed.static.gc", {"11\n"});
|
||||
}
|
||||
|
||||
TEST_F(ArithmeticTests, Subtraction) {
|
||||
runner.run_static_test(env, testCategory, "subtract-1.static.gc", {"4\n"});
|
||||
runner.run_static_test(env, testCategory, "subtract-2.static.gc", {"4\n"});
|
||||
|
||||
Reference in New Issue
Block a user