summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/Lexer.l
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-20 09:32:59 +0000
committerChris Lattner <sabre@nondot.org>2001-10-20 09:32:59 +0000
commitc27b1d7bf39311f78c95ca49a5e26e804a0628bb (patch)
tree17eb487d36a7b755c0440155c88882ef8c78c963 /llvm/lib/AsmParser/Lexer.l
parentf96ef663e02de1240f17b9e06aa1da095c8d919d (diff)
downloadbcm5719-llvm-c27b1d7bf39311f78c95ca49a5e26e804a0628bb.tar.gz
bcm5719-llvm-c27b1d7bf39311f78c95ca49a5e26e804a0628bb.zip
Add support for And, XOR, and Or
llvm-svn: 924
Diffstat (limited to 'llvm/lib/AsmParser/Lexer.l')
-rw-r--r--llvm/lib/AsmParser/Lexer.l3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/AsmParser/Lexer.l b/llvm/lib/AsmParser/Lexer.l
index 5bbe672882a..e9996b28295 100644
--- a/llvm/lib/AsmParser/Lexer.l
+++ b/llvm/lib/AsmParser/Lexer.l
@@ -162,6 +162,9 @@ sub { RET_TOK(BinaryOpVal, Sub, SUB); }
mul { RET_TOK(BinaryOpVal, Mul, MUL); }
div { RET_TOK(BinaryOpVal, Div, DIV); }
rem { RET_TOK(BinaryOpVal, Rem, REM); }
+and { RET_TOK(BinaryOpVal, And, AND); }
+or { RET_TOK(BinaryOpVal, Or , OR ); }
+xor { RET_TOK(BinaryOpVal, Xor, XOR); }
setne { RET_TOK(BinaryOpVal, SetNE, SETNE); }
seteq { RET_TOK(BinaryOpVal, SetEQ, SETEQ); }
setlt { RET_TOK(BinaryOpVal, SetLT, SETLT); }
OpenPOWER on IntegriCloud